Commit ca82bce9 authored by Vitaly Lipatov's avatar Vitaly Lipatov

initial commit for the update script and README

parents
This git repo contains history for
Free and Open Source Software (FOSS) Code for CrossOver
from https://www.codeweavers.com/products/more-information/source
This repository contains:
* Branches with changes from wine vanilla code:
bcw-CWVERSION
* Tags with CrossOver versions:
cw-CWVERSION
* Branch with CrossOver code history:
history
* Script in master branch for update the git repo:
./update-wine-cw.sh TARBALL
#!/bin/sh
# run with tarball from
# http://ftp.codeweavers.com/pub/crossover/source/crossover-sources-9.0.1.tar.gz
# target repo
CWDIR=/home/lav/Projects/WINE/wine-cw
F=$(realpath $1)
TDIR=$(mktemp -d)
fatal()
{
echo "$*" >&2
echo "Removing $TDIR ..."
rm -rf $TDIR
exit 1
}
info()
{
echo "$*"
}
cd $TDIR
erc $F
FD=$(basename $F .gz)
CWVERSION=$(echo $FD | sed -e "s|crossover-sources-\(.*\).tar|\1|") #"
WD=$TDIR/$FD/wine
test -d $WD || fatal
VERSION=$(cat $WD/VERSION | sed -e "s|^Wine version ||")
cd $CWDIR || fatal
# check if branch already exists
if git checkout bcw-$CWVERSION 2>/dev/null ; then
fatal "branch bcw-$CWVERSION already exists, skipping"
else
info "Checkouting branch bcw-$CWVERSION ..."
git checkout -b bcw-$CWVERSION wine-$VERSION || fatal
fi
commit_files()
{
info "Removing files from repo ..."
rm -rf *
info "Copying files from tarball ..."
cp -a $WD/* .
info "Adding to git ..."
git add *
info "Committing ..."
git commit -m "commit $CWVERSION upon wine-$VERSION"
}
commit_files
info
info "Commit source to history branch"
info "Checkouting branch history ..."
git checkout history || fatal
commit_files
git tag cw-$CWVERSION
rm -rf $TDIR
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment