Mercurial > trustbridge
diff packaging/linux-createpackage.sh.in @ 1249:014586ef8a84
(issue68) Package licenses
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Thu, 25 Sep 2014 12:43:56 +0200 |
parents | 3de099c8129e |
children | e7a8ec3185f2 |
line wrap: on
line diff
--- a/packaging/linux-createpackage.sh.in Thu Sep 25 12:04:54 2014 +0200 +++ b/packaging/linux-createpackage.sh.in Thu Sep 25 12:43:56 2014 +0200 @@ -56,6 +56,8 @@ -maxdepth 1 -type f -printf "%p \n") HELPFILES_SOURCES=$(find @CMAKE_BINARY_DIR@/doc/help/client/html/_sources \ -maxdepth 1 -type f -printf "%p \n") +LICENSES=$(find @CMAKE_SOURCE_DIR@/licenses \ + -maxdepth 1 -type f -printf "%p \n") # Make installation in TMPDIR, this is what we will put into the # shar-archive. @@ -66,6 +68,7 @@ install -d "$TMPDIR/share/doc/trustbridge/_static" install -d "$TMPDIR/share/doc/trustbridge/_sources" install -d "$TMPDIR/share/doc/trustbridge/_images" +install -d "$TMPDIR/share/doc/trustbridge/licenses" install "${EXEFILES[@]}" "$TMPDIR/bin" install "$ICON" "$TMPDIR/share/pixmaps/trustbridge/trustbridge.png" @@ -89,6 +92,10 @@ install "$file" "$TMPDIR/share/doc/trustbridge/_sources" helpnames_sources="`basename $file` $helpnames_sources" done +for file in ${LICENSES}; do + install "$file" "$TMPDIR/share/doc/trustbridge/licenses" + licensenames="`basename $file` $licensenames" +done echo "Building $INSTALLER and $UNINSTALLER ..." @@ -107,6 +114,7 @@ sed -i "s/###HELPNAMES_STATIC###/${helpnames_static}/" "$script" sed -i "s/###HELPNAMES_IMG###/${helpnames_img}/" "$script" sed -i "s/###ARCH###/${ARCH}/" "$script" + sed -i "s/###LICENSES###/${licensenames}/" "$script" chmod +x "$script" done