Commit 4c90de7a authored by Mihai Moldovan's avatar Mihai Moldovan

debian/roll-tarballs.sh: next batch of quotes.

parent 56b383b8
...@@ -87,11 +87,11 @@ if [ "x$MODE" = "xfull" ]; then ...@@ -87,11 +87,11 @@ if [ "x$MODE" = "xfull" ]; then
cp -v "debian/patches/$file" "doc/applied-patches/" cp -v "debian/patches/$file" "doc/applied-patches/"
echo "${file##*/}" >> "doc/applied-patches/series" echo "${file##*/}" >> "doc/applied-patches/series"
done done
mkdir -p ./etc/ mkdir -p "./etc/"
cp -v debian/rgb ./etc/ cp -v "debian/rgb" "./etc/"
cp -v debian/nxagent.keyboard ./etc/ cp -v "debian/nxagent.keyboard" "./etc/"
cp -v debian/x2goagent.keyboard ./etc/ cp -v "debian/x2goagent.keyboard" "./etc/"
cp -v debian/VERSION ./VERSION.x2goagent cp -v "debian/VERSION" "./VERSION.x2goagent"
else else
rm -Rf "nxcompshad"* rm -Rf "nxcompshad"*
rm -Rf "nxcompext"* rm -Rf "nxcompext"*
...@@ -102,10 +102,10 @@ else ...@@ -102,10 +102,10 @@ else
echo "${file##*/}" >> "doc/applied-patches/series" echo "${file##*/}" >> "doc/applied-patches/series"
done done
fi fi
cp -v debian/VERSION ./nxcomp/VERSION cp -v "debian/VERSION" "./nxcomp/VERSION"
cp -v debian/COPYING.full+lite COPYING cp -v "debian/COPYING.full+lite" "COPYING"
cp -v debian/nxagent.keyboard nxagent.keyboard cp -v "debian/nxagent.keyboard" "nxagent.keyboard"
cp -v debian/x2goagent.keyboard x2goagent.keyboard cp -v "debian/x2goagent.keyboard" "x2goagent.keyboard"
# apply all patches shipped in debian/patches and create a copy of them that we ship with the tarball # apply all patches shipped in debian/patches and create a copy of them that we ship with the tarball
if [ -s "doc/applied-patches/series" ]; then if [ -s "doc/applied-patches/series" ]; then
...@@ -122,41 +122,41 @@ done ...@@ -122,41 +122,41 @@ done
mkdir -p bin/ mkdir -p bin/
if [ "$MODE" = "lite" ]; then if [ "$MODE" = "lite" ]; then
# copy wrapper script nxproxy only into tarball # copy wrapper script nxproxy only into tarball
cp -v debian/wrappers/nxproxy bin/ cp -v "debian/wrappers/nxproxy" "bin/"
else else
# copy wrapper scripts into tarball # copy wrapper scripts into tarball
for w in $(ls debian/wrappers/* 2>/dev/null); do for w in $(ls debian/wrappers/* 2>/dev/null); do
cp -v $w bin/ cp -v "$w" "bin/"
done done
# provide a default keystrokes.cfg file # provide a default keystrokes.cfg file
mkdir -p etc mkdir -p "etc"
test -f etc/keystrokes.cfg || test -f debian/keystrokes.cfg && cp -v debian/keystrokes.cfg etc/keystrokes.cfg test -f "etc/keystrokes.cfg" || test -f "debian/keystrokes.cfg" && cp -v "debian/keystrokes.cfg" "etc/keystrokes.cfg"
fi fi
mv -v debian/changelog doc/changelog mv -v "debian/changelog" "doc/changelog"
# copy the top-level makefile if no quilt patch created it before # copy the top-level makefile if no quilt patch created it before
test -f Makefile || test -f debian/Makefile.nx-libs && cp -v debian/Makefile.nx-libs Makefile 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 test -f "replace.sh" || test -f "debian/Makefile.replace.sh" && cp -v "debian/Makefile.replace.sh" "replace.sh"
if [ "x$MODE" = "xfull" ]; then if [ "x$MODE" = "xfull" ]; then
#### stuff we do not needed #### stuff we do not needed
UNUSED_FOLDERS=`cat debian/CODE-REDUCTION_CLEANUP-UNUSED` UNUSED_FOLDERS="$(cat "debian/CODE-REDUCTION_CLEANUP-UNUSED")"
CLEANUP_FOLDERS=`cat debian/CODE-REDUCTION_CLEANUP-BRUTAL` CLEANUP_FOLDERS="$(cat "debian/CODE-REDUCTION_CLEANUP-BRUTAL")"
UNNEEDED_BACKUPS=`cat debian/CODE-REDUCTION_CLEANUP-BACKUPFILES` UNNEEDED_BACKUPS="$(cat "debian/CODE-REDUCTION_CLEANUP-BACKUPFILES")"
PRESERVE_SYMLINKED_FILES=`cat debian/CODE-REDUCTION_PRESERVE-SYMLINKED` PRESERVE_SYMLINKED_FILES="$(cat "debian/CODE-REDUCTION_PRESERVE-SYMLINKED")"
PRESERVE_INCLUDED_FILES=`cat debian/CODE-REDUCTION_PRESERVE-INCLUDED` PRESERVE_INCLUDED_FILES="$(cat "debian/CODE-REDUCTION_PRESERVE-INCLUDED")"
PRESERVE_NEEDED_FILES=`cat debian/CODE-REDUCTION_PRESERVE-NEEDED` PRESERVE_NEEDED_FILES="$(cat "debian/CODE-REDUCTION_PRESERVE-NEEDED")"
# remove folders that we do not want to roll into the tarball # remove folders that we do not want to roll into the tarball
rm -Rf ".pc/" rm -Rf ".pc/"
rm -Rf "debian/" rm -Rf "debian/"
mkdir -p .preserve/ mkdir -p ".preserve/"
for path in ${PRESERVE_SYMLINKED_FILES} ${PRESERVE_INCLUDED_FILES} ${PRESERVE_NEEDED_FILES}; do for path in ${PRESERVE_SYMLINKED_FILES} ${PRESERVE_INCLUDED_FILES} ${PRESERVE_NEEDED_FILES}; do
if [ ! -d $path ]; then if [ ! -d "$path" ]; then
path_dirname=$(dirname "$path") path_dirname="$(dirname "$path")"
else else
path_dirname="$path" path_dirname="$path"
fi fi
...@@ -169,8 +169,8 @@ if [ "x$MODE" = "xfull" ]; then ...@@ -169,8 +169,8 @@ if [ "x$MODE" = "xfull" ]; then
done done
# re-create the to-be-preserved files # re-create the to-be-preserved files
cp -a .preserve/* ./ cp -a ".preserve/"* "./"
rm -Rf .preserve/ rm -Rf ".preserve/"
fi fi
# remove files, that we do not want in the tarballs (build cruft) # remove files, that we do not want in the tarballs (build cruft)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment