updated make_diff, added check_diff

--HG--
branch : novattd150
This commit is contained in:
Pavel Stupnikov
2015-03-20 04:19:13 +03:00
parent 872b53464c
commit 2737dc1f75
2 changed files with 22 additions and 1 deletions

13
check_diff.sh Executable file
View File

@@ -0,0 +1,13 @@
DIFF=$1
ORIG_PATH=$2
TMP=/tmp/openttd_original
rm -rf $TMP
cp -r $ORIG_PATH $TMP
mkdir $TMP/bin
cp -r bin/data $TMP/bin
patch -p1 -d $TMP < $DIFF
pushd $TMP
./configure
make clean
make
popd

View File

@@ -5,6 +5,14 @@ mkdir $TMP
unzip -d $TMP release.zip
cp -r bin/lang $TMP
cp nova_changelog.txt $TMP/changelog.txt
cp -r bin/lang $TMP
rm $TMP/nova*.diff
cp nova*.diff $TMP
DIR=`pwd`
pushd $TMP
cp $DIR/bin/openttd.exe openttd.exe
rm $DIR/novapolis_client.zip
zip -9 -r $DIR/novapolis_client.zip *
cp $DIR/bin/openttd64.exe openttd.exe
rm $DIR/novapolis_client_64.zip
zip -9 -r $DIR/novapolis_client_64.zip *
popd