chiark
/
gitweb
/
~yarrgweb
/
jarrg-ian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use "/who" rather than "/w" to find our island
[jarrg-ian.git]
/
build-sh
diff --git
a/build-sh
b/build-sh
index 572996e02398a2458957b299cdc69fa783e28bac..9bef7b3c7d78cd7b9459bc9023f999f6195ef864 100755
(executable)
--- a/
build-sh
+++ b/
build-sh
@@
-18,39
+18,50
@@
if [ x"`git diff 2>/dev/null || echo x`" != x ]; then
revision="$revision-local"
fi
revision="$revision-local"
fi
-cat >src/
com/tedpearson/ypp/market
/Version.java <<END
- package
com.tedpearson.ypp.market
;
+cat >src/
net/chiark/yarrg
/Version.java <<END
+ package
net.chiark.yarrg
;
public class Version {
public final static String version = "$revision";
}
END
public class Version {
public final static String version = "$revision";
}
END
-rm -f src/build/com/tedpearson/ypp/market/Version.class
-rm -f src/build/com/tedpearson/ypp/market/ControlPanel.class
+rm -f src/build/net/chiark/yarrg/Version.class
+rm -f src/build/net/chiark/yarrg/ControlPanel.class
+rm -f src/build/net/chiark/yarrg/MarketUploader.class
rm -f *.jar
cd src
rm -f *.jar
cd src
-ant -f
PCTB
.xml
+ant -f
Jarrg
.xml
cd ..
echo "
cd ..
echo "
-Building tarball
+Building tarball
s
"
"
-GZIP='-9v --rsyncable' tar --exclude=\*{~,.tar.gz,.exe} --exclude='#*#' \
- --transform='s/^./jpctb/' --exclude=jpctb/{src/build,tmp} \
- -zcf jpctb.tar.gz .
+tarball () {
+ output=$1; shift
+ GZIP='-9v --rsyncable' tar --exclude=\*{~,.tar.gz,.exe} --exclude='#*#' \
+ --transform='s/^./jarrg/' --exclude={src/build,tmp} "$@" \
+ -zcf "$output" .
+}
-files='jpctb.tar.gz jpctb-setup.exe'
+tarball jarrg-source.tar.gz
+
+tarball jarrg-linux.tar.gz \
+ --exclude={.git*,src,accessibility.properties,build-sh} \
+
+files='jarrg-source.tar.gz jarrg-linux.tar.gz jarrg-setup.exe'
echo "
Generated OK:
"
ls -al $files
echo "
Generated OK:
"
ls -al $files
-pubbase="${J
PCTB
_PUBLISH_BASE-login.chiark.greenend.org.uk}"
-pubdir="${J
PCTB_PUBLISH_DIR-/home/yarrgweb/public-html/download/jpctb
}"
+pubbase="${J
ARRG
_PUBLISH_BASE-login.chiark.greenend.org.uk}"
+pubdir="${J
ARRG_PUBLISH_DIR-/home/yarrgweb/public-html/download/jarrg
}"
echo "
echo "
+Revision: $revision
+
Install with:
RSYNC_RSH=ssh rsync -vP $files $pubbase:$pubdir/test/
"
Install with:
RSYNC_RSH=ssh rsync -vP $files $pubbase:$pubdir/test/
"