summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-11-07 20:51:25 -0800
committerH. Peter Anvin <hpa@zytor.com>2010-11-07 20:51:25 -0800
commit94ab8e8c880b794e9311b797d3caa4deed8de353 (patch)
treeb547672545d936a3a3683c491d3b250e1f7d2056
parentf7aae6520e0bb7b6b08f0ee9c4841fbfaa99eb1b (diff)
downloadnasmbuild-94ab8e8c880b794e9311b797d3caa4deed8de353.tar.gz
nasmbuild-94ab8e8c880b794e9311b797d3caa4deed8de353.tar.xz
nasmbuild-94ab8e8c880b794e9311b797d3caa4deed8de353.zip
Always update LAST_HEAD even if the build wasn't successful; this will prevent the same build
from being run over and over and over.
-rwxr-xr-xbuildall.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/buildall.sh b/buildall.sh
index 812dff0..034af88 100755
--- a/buildall.sh
+++ b/buildall.sh
@@ -214,10 +214,10 @@ if [ -d "$snapdir"/$today ]; then
fi
snap_version=$(cat git/version)-$today
-build "$snap_version" "$snapdir"/$today git "$HEAD"
-env GIT_DIR="$tagrepo" git tag -a -f -m "Daily snapshot $today" nasm-"$snap_version"
-env GIT_DIR="$tagrepo" git update-server-info
+if ( build "$snap_version" "$snapdir"/$today git "$HEAD" ); then
+ env GIT_DIR="$tagrepo" git tag -a -f -m "Daily snapshot $today" nasm-"$snap_version"
+ env GIT_DIR="$tagrepo" git update-server-info
+ ( cd $snapdir && rm -f latest && ln -s $today latest )
+fi
echo "$HEAD" > LAST_HEAD
-
-( cd $snapdir && rm -f latest && ln -s $today latest )