chiark / gitweb /
separate source and binary tarballs for linux 0.9.9
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sun, 5 Sep 2010 20:37:44 +0000 (21:37 +0100)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sun, 5 Sep 2010 20:37:44 +0000 (21:37 +0100)
.gitignore
README
build-sh

index 7d36bd5..0ee79c8 100644 (file)
@@ -6,7 +6,7 @@ tmp
 Jarrg-ControlPanel.jar
 Jarrg-Uploader.jar
 jarrg-setup.exe
-jarrg.tar.gz
+jarrg-*.tar.gz
 jarrg-debug-*
 src/build/
 src/net/chiark/yarrg/Version.java
diff --git a/README b/README
index c7528e3..6859fce 100644 (file)
--- a/README
+++ b/README
@@ -31,6 +31,9 @@ one of two things:
 Source
 ------
 
+This applies only if you have downloaded "jarrg-source.tar.gz".
+The "jarrg-linux.tar.gz" package contains only the executable files.
+
 To build from source you will need a Java SDK, version 6, and Apache
 ant, as well as NSIS to build the Windows installer package.
 
index 24b8a0a..405e6d5 100755 (executable)
--- a/build-sh
+++ b/build-sh
@@ -33,14 +33,22 @@ ant -f Jarrg.xml
 cd ..
 
 echo "
-Building tarball
+Building tarballs
 "
 
-GZIP='-9v --rsyncable' tar --exclude=\*{~,.tar.gz,.exe} --exclude='#*#' \
-  --transform='s/^./jarrg/' --exclude=jarrg/{src/build,tmp} \
-  -zcf jarrg.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='jarrg.tar.gz jarrg-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: