Fixed platform/unix/autobuild

This commit is contained in:
Bart van Strien
2011-02-18 15:42:58 +01:00
parent 31f8c68b4b
commit dcac7e5be1
+7 -7
View File
@@ -75,7 +75,7 @@ hg update -r $buildrev
if [ -z $3 ]; then if [ -z $3 ]; then
if [ "$buildrev" == "tip" ]; then if [ "$buildrev" == "tip" ]; then
# Get the current SVN version, use sed to remove any non-numbers. # Get the current SVN version, use sed to remove any non-numbers.
currentversion=`hg log -l1 | grep changeset | sed 's/.*://g'` currentversion=`hg log -l1 --template "{node|short}"`
currentdate=`date +%Y%m%d` currentdate=`date +%Y%m%d`
displayversion="$currentdate-$currentversion" displayversion="$currentdate-$currentversion"
else else
@@ -99,7 +99,7 @@ cp configure.in.tmp configure.in
rm configure.in.tmp rm configure.in.tmp
# Build ... BUILD! # Build ... BUILD!
sh platform/unix/gen-makefile #sh platform/unix/gen-makefile
sh platform/unix/automagic sh platform/unix/automagic
./configure ./configure
make make
@@ -124,11 +124,11 @@ binary="love-$displayversion-linux-$machine"
cp ../../src/love $binary cp ../../src/love $binary
# Deal with uploading. # Deal with uploading.
if [ "$1" == "build" ]; then #if [ "$1" == "build" ]; then
curl -F build=@$deb -F press=ok http://love2d.org/builds/upload.php?upload # curl -F build=@$deb -F press=ok http://love2d.org/builds/upload.php?upload
curl -F build=@$tar -F press=ok http://love2d.org/builds/upload.php?upload # curl -F build=@$tar -F press=ok http://love2d.org/builds/upload.php?upload
curl -F build=@$binary -F press=ok http://love2d.org/builds/upload.php?upload # curl -F build=@$binary -F press=ok http://love2d.org/builds/upload.php?upload
fi #fi
if [ "$1" == "release" ]; then if [ "$1" == "release" ]; then
echo "release" echo "release"