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 if [ x"`git diff 2>/dev/null || echo x`" != x ]; then
18 revision="$revision-local"
21 cat >src/com/tedpearson/ypp/market/Version.java <<END
22 package com.tedpearson.ypp.market;
23 public class Version {
24 public final static String version = "$revision";
27 rm -f src/build/com/tedpearson/ypp/market/Version.class
28 rm -f src/build/com/tedpearson/ypp/market/ControlPanel.class
39 GZIP='-9v --rsyncable' tar --exclude=\*{~,.tar.gz,.exe} --exclude='#*#' \
40 --transform='s/^./jarrg/' --exclude=jarrg/{src/build,tmp} \
43 files='jarrg.tar.gz jarrg-setup.exe'
50 pubbase="${JARRG_PUBLISH_BASE-login.chiark.greenend.org.uk}"
51 pubdir="${JARRG_PUBLISH_DIR-/home/yarrgweb/public-html/download/jarrg}"
57 RSYNC_RSH=ssh rsync -vP $files $pubbase:$pubdir/test/