Mercurial > trustbridge
diff packaging/create-dist-package.sh.in @ 1249:014586ef8a84
(issue68) Package licenses
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Thu, 25 Sep 2014 12:43:56 +0200 |
parents | e4aff35ef8fd |
children | 46b598e0dfc6 |
line wrap: on
line diff
--- a/packaging/create-dist-package.sh.in Thu Sep 25 12:04:54 2014 +0200 +++ b/packaging/create-dist-package.sh.in Thu Sep 25 12:43:56 2014 +0200 @@ -52,6 +52,7 @@ cp -r @CMAKE_SOURCE_DIR@/packaging/resources $TMPDIR/resources cp @CMAKE_SOURCE_DIR@/build-windows/packaging/DesktopShellRun.dll $TMPDIR/resources cp -r @CMAKE_BINARY_DIR@/doc/help/client/html $TMPDIR/windows/doc +cp -r @CMAKE_SOURCE_DIR@/licenses $TMPDIR/windows/licenses echo "; This file is autogenerated." > $TMPDIR/resources/filelist_in.nsh echo "; This file is autogenerated." > $TMPDIR/resources/filelist_un.nsh @@ -65,6 +66,15 @@ fi echo Delete \"\$INSTDIR\\$file\" >> $TMPDIR/resources/filelist_un.nsh done + +cd $TMPDIR/windows/licenses +echo SetOutPath \"\$INSTDIR\\licenses\" >> @CMAKE_CURRENT_BINARY_DIR@/filelist_in.nsh +for file in `find * -type f`; do + echo File \"\${files_dir}\${path_sep}licenses\${path_sep}$file\" >> @CMAKE_CURRENT_BINARY_DIR@/filelist_in.nsh + echo Delete \"\$INSTDIR\\licenses\\$file\" >> @CMAKE_CURRENT_BINARY_DIR@/filelist_un.nsh +done +echo RmDir \"\$INSTDIR\\licenses\" >> @CMAKE_CURRENT_BINARY_DIR@/filelist_un.nsh + cd $TMPDIR/windows/doc for curdir in `find * -maxdepth 0 -type d -not -path .`; do