Mercurial > trustbridge
diff packaging/create-dist-package.sh.in @ 1188:eb77ddd7e1ab
(issue137) Generate and include install / uninstall file lists
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Mon, 22 Sep 2014 15:37:32 +0200 |
parents | 913867a8bf40 |
children | e4aff35ef8fd |
line wrap: on
line diff
--- a/packaging/create-dist-package.sh.in Mon Sep 22 15:36:57 2014 +0200 +++ b/packaging/create-dist-package.sh.in Mon Sep 22 15:37:32 2014 +0200 @@ -53,6 +53,39 @@ cp @CMAKE_SOURCE_DIR@/build-windows/packaging/DesktopShellRun.dll $TMPDIR/resources cp -r @CMAKE_BINARY_DIR@/doc/help/client/html $TMPDIR/windows/doc +echo "; This file is autogenerated." > $TMPDIR/resources/filelist_in.nsh +echo "; This file is autogenerated." > $TMPDIR/resources/filelist_un.nsh +OLDDIR=$(pwd) +cd $TMPDIR/windows +for file in `find * -name \*.exe`; do + echo File \"\${files_dir}\${path_sep}$file\" >> $TMPDIR/resources/filelist_in.nsh + echo Delete \"\$INSTDIR\\$file\" >> $TMPDIR/resources/filelist_un.nsh +done +cd $TMPDIR/windows/doc + +for curdir in `find * -maxdepth 0 -type d -not -path .`; do + cd $curdir + curpath=\"\$INSTDIR\\doc\\$curdir\" + echo SetOutPath $curpath >> $TMPDIR/resources/filelist_in.nsh + for file in `find * -maxdepth 0 -type f`; do + echo File \"\${files_dir}\${path_sep}doc\${path_sep}$curdir\${path_sep}$file\" >> $TMPDIR/resources/filelist_in.nsh + echo Delete \"\$INSTDIR\\doc\\$curdir\\$file\" >> $TMPDIR/resources/filelist_un.nsh + done + echo RMDir $curpath >> $TMPDIR/resources/filelist_un.nsh + cd - +done + +echo SetOutPath \"\$INSTDIR\\doc\" >> $TMPDIR/resources/filelist_in.nsh +for file in `find * -maxdepth 0 -type f -not -path .buildinfo`; do + echo File \"\${files_dir}\${path_sep}doc\${path_sep}$file\" >> $TMPDIR/resources/filelist_in.nsh + echo Delete \"\$INSTDIR\\doc\\$file\" >> $TMPDIR/resources/filelist_un.nsh +done +echo RMDir \"\$INSTDIR\\doc\" >> $TMPDIR/resources/filelist_un.nsh + +cd $OLDDIR + + + cp @CMAKE_SOURCE_DIR@/packaging/filelist.nsh $TMPDIR cp @CMAKE_SOURCE_DIR@/packaging/trustbridge.nsi $TMPDIR LC_ALL="de_DE.latin-1" echo "company=Bundesamt für Sicherheit in der Informationstechnik" > $TMPDIR/meta.ini