From ead1e823aeb71e0e2e6742124cc485252699b22a Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Sat, 11 May 2013 20:40:57 +0200 Subject: * Tarball roller script: + Only install keystrokes.cfg when in full mode. + Only install nxproxy wrapper when in lite mode. --- debian/changelog | 3 +++ debian/roll-tarballs.sh | 20 ++++++++++++-------- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/debian/changelog b/debian/changelog index 4de9a3679..ee527a7bf 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,6 +4,9 @@ nx-libs (2:3.5.0.21-0) UNRELEASED; urgency=low (for x2goagent). (Fixes: #199). * Set NXAGENT_KEYSTROKEFILE to /etc/x2go/keystrokes.cfg for wrapper x2goagent. * For vanilla nxagent move keystrokes.cfg from /etc/nx to /etc/nxagent. + * Tarball roller script: + + Only install keystrokes.cfg when in full mode. + + Only install nxproxy wrapper when in lite mode. -- Mike Gabriel Thu, 28 Mar 2013 21:07:42 +0100 diff --git a/debian/roll-tarballs.sh b/debian/roll-tarballs.sh index 2dc1c8942..fd36b281d 100755 --- a/debian/roll-tarballs.sh +++ b/debian/roll-tarballs.sh @@ -111,10 +111,18 @@ for f in $(ls README* 2>/dev/null); do done mkdir -p bin/ -# old releases introude the wrappers via quilt patch -for w in $(ls debian/wrappers/* 2>/dev/null); do - cp -v $w bin/ -done +if [ "$MODE" = "lite" ]; then + # copy wrapper script nxproxy only into tarball + cp -v debian/wrappers/nxproxy bin/ +else + # copy wrapper scripts into tarball + for w in $(ls debian/wrappers/* 2>/dev/null); do + cp -v $w bin/ + done + # provide a default keystrokes.cfg file + mkdir -p etc + test -f etc/keystrokes.cfg || test -f debian/keystrokes.cfg && cp -v debian/keystrokes.cfg etc/keystrokes.cfg +fi mv -v debian/changelog doc/changelog @@ -122,10 +130,6 @@ mv -v debian/changelog doc/changelog test -f Makefile || test -f debian/Makefile.nx-libs && cp -v debian/Makefile.nx-libs Makefile test -f replace.sh || test -f debian/Makefile.replace.sh && cp -v debian/Makefile.replace.sh replace.sh -# provide a default keystrokes.cfg file -mkdir -p etc -test -f etc/keystrokes.cfg || test -f debian/keystrokes.cfg && cp -v debian/keystrokes.cfg etc/keystrokes.cfg - # remove folders that we do not want to roll into the tarball rm -Rf ".pc/" rm -Rf "debian/" -- cgit v1.2.3