X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=build-sh;h=d4687dcc99401570ec92bc8f53bed0f6a0d5a962;hb=3a7cd290935c44dad8c18ade31b777db2c6e9f19;hp=eb3d1e2e2da1e38324cfa60e0ddfcc96b3670839;hpb=21094459ba3d050f011c0c7d7dff52ab488526c4;p=jarrg-owen.git diff --git a/build-sh b/build-sh index eb3d1e2..d4687dc 100755 --- a/build-sh +++ b/build-sh @@ -5,7 +5,7 @@ set -e case "$#.$1" in -0) ;; +0.) ;; *.-*) echo >&2 'no options allowed'; exit 1;; *) echo >&2 'no arguments allowed'; exit 1;; esac @@ -13,13 +13,15 @@ esac : ${JAVA_HOME:=/usr/lib/jvm/java-6-sun} export JAVA_HOME -(set -e; cd src; ant -f PCTB.xml) +cd src +ant -f PCTB.xml +cd .. echo " Building tarball " -GZIP=-9v tar --exclude=\*{~,.tar.gz,.exe} --exclude='#*#' \ +GZIP='-9v --rsyncable' tar --exclude=\*{~,.tar.gz,.exe} --exclude='#*#' \ --transform='s/^./jpctb/' --exclude=jpctb/{src/build,tmp} \ -zcf jpctb.tar.gz . @@ -31,7 +33,7 @@ Generated OK: ls -al $files pubbase="${JPCTB_PUBLISH_BASE-login.chiark.greenend.org.uk}" -pubdir="${JPCTB_PUBLISH_DIR-/home/yarrgweb/public-html/jpctb}" +pubdir="${JPCTB_PUBLISH_DIR-/home/yarrgweb/public-html/download/jpctb}" revision=`git describe --always` echo "