summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-09-22 23:04:31 +0000
committerH. Peter Anvin <hpa@zytor.com>2008-09-22 23:04:31 +0000
commita49a7d1b35b263c9500d878fbdf1c22f0fc29da7 (patch)
tree7dada448f7827a3d0d2c8144b625bc42498352ec
parent8cb1c00d5c9575886e4a2e34fc8d958fe1aebf4a (diff)
downloadnasmbuild-a49a7d1b35b263c9500d878fbdf1c22f0fc29da7.tar.gz
nasmbuild-a49a7d1b35b263c9500d878fbdf1c22f0fc29da7.tar.xz
nasmbuild-a49a7d1b35b263c9500d878fbdf1c22f0fc29da7.zip
Autobuild HTML docs for webpage
-rwxr-xr-xbuildall.sh25
1 files changed, 23 insertions, 2 deletions
diff --git a/buildall.sh b/buildall.sh
index 38bd778..7e660dc 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
+web=/home/www/nasm
DOS4GW=/usr/share/openwatcom/binw/dos4gw.exe
CWSDPMI=/home/nasmbuild/cwsdpmi
@@ -29,7 +30,7 @@ build () {
jobs=$((cpus+2))
makej="make -j$jobs"
- rm -rf nasm-* win32 dos os2 rpmbuild
+ rm -rf nasm-* win32 dos os2 rpmbuild html
mkdir -p rpmbuild/{BUILD,RPMS,SRPMS,SPECS,SOURCES}
(
@@ -46,7 +47,9 @@ build () {
tar xfj nasm-$version.tar.bz2
tar xfj nasm-$version-xdoc.tar.bz2
-
+
+ cp -a nasm-$version/doc/html .
+
mkdir -p win32
cp -a nasm-$version win32
cd win32/nasm-$version
@@ -93,6 +96,23 @@ build () {
echo "$version" "$rev" >> build-ids
}
+process_release () {
+ case "$1" in
+ *pre*)
+ # Prerelease; don't do anything
+ ;;
+ *rc*)
+ # -rc release
+ update_version "$1" $web/rc-version
+ ;;
+ *)
+ update_version "$1" $web/version
+ cp -a work/html $web/docs/"$1"
+ ( cd $web && ln -sf docs/"$1" doc )
+ ;;
+ esac
+}
+
rm -rf git git-rel
today=$(date +%Y%m%d)
@@ -122,6 +142,7 @@ fi
( cd git-rel && git checkout "$tag" )
tagref=$(cd git-rel && git rev-parse "$tag")
build "$rel_version" "$reldir"/"$rel_version" git-rel "$tagref"
+ process_release "$rel_version"
fi
;;
esac