3 # We don't supply a Makefile. Instead, we just supply this shell script.
9 *.-*) echo >&2 'no options allowed'; exit 1;;
10 *) echo >&2 'no arguments allowed'; exit 1;;
13 : ${JAVA_HOME:=/usr/lib/jvm/java-6-sun}
16 revision=`git describe --always || echo '(unknown revision)'`
17 cat >src/com/tedpearson/ypp/market/Version.java <<END
18 package com.tedpearson.ypp.market;
19 public class Version {
20 public final static String version = "$revision";
23 rm -f src/build/com/tedpearson/ypp/market/Version.class
34 GZIP='-9v --rsyncable' tar --exclude=\*{~,.tar.gz,.exe} --exclude='#*#' \
35 --transform='s/^./jpctb/' --exclude=jpctb/{src/build,tmp} \
38 files='jpctb.tar.gz jpctb-setup.exe'
45 pubbase="${JPCTB_PUBLISH_BASE-login.chiark.greenend.org.uk}"
46 pubdir="${JPCTB_PUBLISH_DIR-/home/yarrgweb/public-html/download/jpctb}"
50 RSYNC_RSH=ssh rsync -vP $files $pubbase:$pubdir/test/