diff options
author | DRC <dcommander@users.sourceforge.net> | 2011-06-25 08:48:19 +0000 |
---|---|---|
committer | DRC <dcommander@users.sourceforge.net> | 2011-06-25 08:48:19 +0000 |
commit | c377ebd9b599e34324ded6dcbbbe1f6f20f6b9f9 (patch) | |
tree | 8d50e4b207090479a15cd20eb62e966d63cba593 /release | |
parent | b7140022dfe7dfd1f52145e190ad0ff0f6cc83bd (diff) | |
download | tigervnc-c377ebd9b599e34324ded6dcbbbe1f6f20f6b9f9.tar.gz tigervnc-c377ebd9b599e34324ded6dcbbbe1f6f20f6b9f9.zip |
Implement 'make tarball' and 'make servertarball'
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4555 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'release')
-rw-r--r-- | release/maketarball.in | 35 |
1 files changed, 26 insertions, 9 deletions
diff --git a/release/maketarball.in b/release/maketarball.in index 544dc215..b6740e43 100644 --- a/release/maketarball.in +++ b/release/maketarball.in @@ -15,12 +15,13 @@ onexit() fi } -PACKAGE_NAME=@PACKAGE_NAME@ +PACKAGE_NAME=@CMAKE_PROJECT_NAME@ VERSION=@VERSION@ BUILD=@BUILD@ -SRCDIR=@srcdir@ -OS=`uname -s` -CPU=@host_cpu@ +SRCDIR=@CMAKE_SOURCE_DIR@ +OS=@CMAKE_SYSTEM_NAME@ +CPU=@CMAKE_SYSTEM_PROCESSOR@ +PREFIX=@CMAKE_INSTALL_PREFIX@ PACKAGE_FILE=$PACKAGE_NAME-$OS-$CPU-$VERSION.tar.gz SERVER=0 @@ -33,13 +34,29 @@ fi umask 022 TMPDIR=`mktemp -d /tmp/$PACKAGE_NAME-build.XXXXXX` rm -f $PACKAGE_FILE +OUTDIR=$TMPDIR/inst/$PREFIX + +mkdir -p $OUTDIR/bin +mkdir -p $OUTDIR/man/man1 + +make DESTDIR=$TMPDIR/inst install if [ $SERVER = 1 ]; then - make xserver-install prefix=/opt/TigerVNC DESTDIR=$TMPDIR -else - make install prefix=/opt/TigerVNC DESTDIR=$TMPDIR + pushd $SRCDIR/java/src/com/tigervnc/vncviewer + make + popd + install -m 755 ./xorg.build/bin/Xvnc $OUTDIR/bin/ + install -m 644 ./xorg.build/man/man1/Xvnc.1 $OUTDIR/man/man1/Xvnc.1 + install -m 644 ./xorg.build/man/man1/Xserver.1 $OUTDIR/man/man1/Xserver.1 + mkdir -p $OUTDIR/vnc/classes/ + install -m 644 $SRCDIR/java/src/com/tigervnc/vncviewer/index.vnc $OUTDIR/vnc/classes/ + install -m 644 $SRCDIR/java/src/com/tigervnc/vncviewer/VncViewer.jar $OUTDIR/vnc/classes/ + install -m 644 $SRCDIR/java/src/com/tigervnc/vncviewer/README $OUTDIR/vnc/classes/ + mkdir -p $OUTDIR/lib/dri/ + install -m 755 ./xorg.build/lib/dri/swrast_dri.so $OUTDIR/lib/dri/ fi -pushd $TMPDIR -tar cfz $PACKAGE_FILE opt + +pushd $TMPDIR/inst +tar cfz ../$PACKAGE_FILE . popd cp $TMPDIR/$PACKAGE_FILE . |