summaryrefslogtreecommitdiffstats
path: root/release
diff options
context:
space:
mode:
authorDRC <dcommander@users.sourceforge.net>2011-02-09 10:45:09 +0000
committerDRC <dcommander@users.sourceforge.net>2011-02-09 10:45:09 +0000
commit61b630a98cb1a21448f0db17dea3f02dcd669ad2 (patch)
treed5b599dbe7aa5849f6137602e0ff09936a333dd2 /release
parent37e9e8ce94151c3d4e1b07a7ebc1444989431ccc (diff)
downloadtigervnc-61b630a98cb1a21448f0db17dea3f02dcd669ad2.tar.gz
tigervnc-61b630a98cb1a21448f0db17dea3f02dcd669ad2.zip
Add mechanism for creating binary tarballs
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4274 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'release')
-rw-r--r--release/BUILDING.txt8
-rw-r--r--release/maketarball.in44
2 files changed, 52 insertions, 0 deletions
diff --git a/release/BUILDING.txt b/release/BUILDING.txt
index 3f580815..6b2f9db0 100644
--- a/release/BUILDING.txt
+++ b/release/BUILDING.txt
@@ -433,6 +433,14 @@ The following commands can be used to create various types of release packages:
Unix
----
+make tarball
+
+ Create a binary tarball containing the TigerVNC Viewer
+
+make servertarball
+
+ Create a binary tarball containing both the TigerVNC Server and Viewer
+
make dmg
Create Macintosh package/disk image. This requires the PackageMaker
diff --git a/release/maketarball.in b/release/maketarball.in
new file mode 100644
index 00000000..cc836f34
--- /dev/null
+++ b/release/maketarball.in
@@ -0,0 +1,44 @@
+#!/bin/sh
+
+set -u
+set -e
+trap onexit INT
+trap onexit TERM
+trap onexit EXIT
+
+TMPDIR=
+
+onexit()
+{
+ if [ ! "$TMPDIR" = "" ]; then
+ rm -rf $TMPDIR
+ fi
+}
+
+PACKAGE_NAME=@PACKAGE_NAME@
+VERSION=@VERSION@
+BUILD=@BUILD@
+SRCDIR=@srcdir@
+PACKAGE_FILE=$PACKAGE_NAME-`uname -s`-@host_cpu@.tar.gz
+SERVER=0
+
+if [ $# -gt 0 ]; then
+ if [ "$1" = "server" ]; then
+ SERVER=1
+ fi
+fi
+
+umask 022
+TMPDIR=`mktemp -d /tmp/$PACKAGE_NAME-build.XXXXXX`
+rm -f $PACKAGE_FILE
+if [ $SERVER = 1 ]; then
+ make xserver-install prefix=/opt/TigerVNC DESTDIR=$TMPDIR
+else
+ make install prefix=/opt/TigerVNC DESTDIR=$TMPDIR
+fi
+pushd $TMPDIR
+tar cfz $PACKAGE_FILE opt
+popd
+cp $TMPDIR/$PACKAGE_FILE .
+
+exit