summaryrefslogtreecommitdiffstats
path: root/buildall.sh
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-09-30 22:26:22 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-09-30 22:26:22 -0700
commit47163dcb015c2e95ed129d305865945b92fd816b (patch)
tree6693fbcdfc793e5ebce6e261f9acf2501eae976d /buildall.sh
parent3a20258ea7fdecdaf2c725a1e50bee42f547f3c0 (diff)
downloadnasmbuild-47163dcb015c2e95ed129d305865945b92fd816b.tar.gz
nasmbuild-47163dcb015c2e95ed129d305865945b92fd816b.tar.xz
nasmbuild-47163dcb015c2e95ed129d305865945b92fd816b.zip
buildall.sh: keep a shadow git repository with daily build tags
Keep a shadow git repository with all the relevant tags.
Diffstat (limited to 'buildall.sh')
-rwxr-xr-xbuildall.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/buildall.sh b/buildall.sh
index 1abc7fb..5af97b6 100755
--- a/buildall.sh
+++ b/buildall.sh
@@ -5,6 +5,7 @@ patchdir=/home/nasmbuild/patches
snapdir=/pub/nasm/snapshots
reldir=/pub/nasm/releasebuilds
repo=/pub/git/nasm/nasm.git
+tagrepo=/pub/git/nasm/nasm-daily.git
web=/home/www/nasm
DOS4GW=/usr/share/openwatcom/binw/dos4gw.exe
@@ -118,6 +119,7 @@ rm -rf git git-rel
today=$(date +%Y%m%d)
git clone -s -l $repo git
+(cd $tagrepo && git pull -f) > /dev/null 2>&1
HEAD=$(cd git && git rev-parse HEAD)
#
@@ -161,6 +163,8 @@ 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
echo "$HEAD" > LAST_HEAD