comparison 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
comparison
equal deleted inserted replaced
1187:913867a8bf40 1188:eb77ddd7e1ab
51 cp @CMAKE_SOURCE_DIR@/build-windows/cinst/trustbridge-nss-installer.exe $TMPDIR/windows 51 cp @CMAKE_SOURCE_DIR@/build-windows/cinst/trustbridge-nss-installer.exe $TMPDIR/windows
52 cp -r @CMAKE_SOURCE_DIR@/packaging/resources $TMPDIR/resources 52 cp -r @CMAKE_SOURCE_DIR@/packaging/resources $TMPDIR/resources
53 cp @CMAKE_SOURCE_DIR@/build-windows/packaging/DesktopShellRun.dll $TMPDIR/resources 53 cp @CMAKE_SOURCE_DIR@/build-windows/packaging/DesktopShellRun.dll $TMPDIR/resources
54 cp -r @CMAKE_BINARY_DIR@/doc/help/client/html $TMPDIR/windows/doc 54 cp -r @CMAKE_BINARY_DIR@/doc/help/client/html $TMPDIR/windows/doc
55 55
56 echo "; This file is autogenerated." > $TMPDIR/resources/filelist_in.nsh
57 echo "; This file is autogenerated." > $TMPDIR/resources/filelist_un.nsh
58 OLDDIR=$(pwd)
59 cd $TMPDIR/windows
60 for file in `find * -name \*.exe`; do
61 echo File \"\${files_dir}\${path_sep}$file\" >> $TMPDIR/resources/filelist_in.nsh
62 echo Delete \"\$INSTDIR\\$file\" >> $TMPDIR/resources/filelist_un.nsh
63 done
64 cd $TMPDIR/windows/doc
65
66 for curdir in `find * -maxdepth 0 -type d -not -path .`; do
67 cd $curdir
68 curpath=\"\$INSTDIR\\doc\\$curdir\"
69 echo SetOutPath $curpath >> $TMPDIR/resources/filelist_in.nsh
70 for file in `find * -maxdepth 0 -type f`; do
71 echo File \"\${files_dir}\${path_sep}doc\${path_sep}$curdir\${path_sep}$file\" >> $TMPDIR/resources/filelist_in.nsh
72 echo Delete \"\$INSTDIR\\doc\\$curdir\\$file\" >> $TMPDIR/resources/filelist_un.nsh
73 done
74 echo RMDir $curpath >> $TMPDIR/resources/filelist_un.nsh
75 cd -
76 done
77
78 echo SetOutPath \"\$INSTDIR\\doc\" >> $TMPDIR/resources/filelist_in.nsh
79 for file in `find * -maxdepth 0 -type f -not -path .buildinfo`; do
80 echo File \"\${files_dir}\${path_sep}doc\${path_sep}$file\" >> $TMPDIR/resources/filelist_in.nsh
81 echo Delete \"\$INSTDIR\\doc\\$file\" >> $TMPDIR/resources/filelist_un.nsh
82 done
83 echo RMDir \"\$INSTDIR\\doc\" >> $TMPDIR/resources/filelist_un.nsh
84
85 cd $OLDDIR
86
87
88
56 cp @CMAKE_SOURCE_DIR@/packaging/filelist.nsh $TMPDIR 89 cp @CMAKE_SOURCE_DIR@/packaging/filelist.nsh $TMPDIR
57 cp @CMAKE_SOURCE_DIR@/packaging/trustbridge.nsi $TMPDIR 90 cp @CMAKE_SOURCE_DIR@/packaging/trustbridge.nsi $TMPDIR
58 LC_ALL="de_DE.latin-1" echo "company=Bundesamt für Sicherheit in der Informationstechnik" > $TMPDIR/meta.ini 91 LC_ALL="de_DE.latin-1" echo "company=Bundesamt für Sicherheit in der Informationstechnik" > $TMPDIR/meta.ini
59 EST_SIZE=$(du -s $TMPDIR/windows | cut -f 1) 92 EST_SIZE=$(du -s $TMPDIR/windows | cut -f 1)
60 echo "version_number=@PROJECT_VERSION@" >> $TMPDIR/meta.ini 93 echo "version_number=@PROJECT_VERSION@" >> $TMPDIR/meta.ini

http://wald.intevation.org/projects/trustbridge/