Update config.h location on scripts/ folder

This commit is contained in:
David Capello 2014-02-24 09:17:12 -03:00
parent 72a4fbd7e1
commit 28cb389ac8
3 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
#! /bin/sh
dir="`pwd`"
version=$(cat ../config.h | grep VERSION | sed -e 's/.*\"\(.*\)\"/\1/g')
version=$(cat ../src/config.h | grep VERSION | sed -e 's/.*\"\(.*\)\"/\1/g')
distdir=aseprite-$version
zip="zip -9"
zip_recursive_flag="-r"

View File

@ -19,8 +19,8 @@ while [ $commas -lt 3 ] ; do
commas=$(grep -o "," <<< "$version_win32" | wc -l)
done
sed -e "s/define VERSION.*/define VERSION \"$version\"/" < ../config.h > tmp
mv tmp ../config.h
sed -e "s/define VERSION.*/define VERSION \"$version\"/" < ../src/config.h > tmp
mv tmp ../src/config.h
sed -e "s/gui version=\".*/gui version=\"$version\">/" < ../data/gui.xml > tmp
mv tmp ../data/gui.xml

View File

@ -5,7 +5,7 @@ if [ ! -f upload_packages.sh ]; then
exit 1
fi
version=$(cat ../config.h | grep VERSION | sed -e 's/.*\"\(.*\)\"/\1/g')
version=$(cat ../src/config.h | grep VERSION | sed -e 's/.*\"\(.*\)\"/\1/g')
python=c:/Python27/python.exe
echo "Uploading $version..."