Mercurial > trustbridge
comparison packaging/win-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 | e4aff35ef8fd |
children | c480afb35db7 |
comparison
equal
deleted
inserted
replaced
1248:9f5893faa60b | 1249:014586ef8a84 |
---|---|
11 TMPDIR=$(mktemp -d) | 11 TMPDIR=$(mktemp -d) |
12 TMPINST=$(mktemp) | 12 TMPINST=$(mktemp) |
13 | 13 |
14 EXEFILES=$(find . -name trustbridge-certificate-installer.exe -o -name trustbridge.exe -o -name trustbridge-nss-installer.exe) | 14 EXEFILES=$(find . -name trustbridge-certificate-installer.exe -o -name trustbridge.exe -o -name trustbridge-nss-installer.exe) |
15 HELPDIR=@CMAKE_BINARY_DIR@/doc/help/client/html | 15 HELPDIR=@CMAKE_BINARY_DIR@/doc/help/client/html |
16 LICENSE_DIR=@CMAKE_SOURCE_DIR@/licenses | |
16 | 17 |
17 cp $EXEFILES $TMPDIR | 18 cp $EXEFILES $TMPDIR |
18 cp -r $HELPDIR $TMPDIR/doc | 19 cp -r $HELPDIR $TMPDIR/doc |
20 cp -r $LICENSE_DIR $TMPDIR/licenses | |
19 | 21 |
20 echo "; This file is autogenerated." > @CMAKE_CURRENT_BINARY_DIR@/filelist_in.nsh | 22 echo "; This file is autogenerated." > @CMAKE_CURRENT_BINARY_DIR@/filelist_in.nsh |
21 echo "; This file is autogenerated." > @CMAKE_CURRENT_BINARY_DIR@/filelist_un.nsh | 23 echo "; This file is autogenerated." > @CMAKE_CURRENT_BINARY_DIR@/filelist_un.nsh |
22 OLDDIR=$(pwd) | 24 OLDDIR=$(pwd) |
23 cd $TMPDIR | 25 cd $TMPDIR |
27 # The nss installer is handled specially on uninstallation. | 29 # The nss installer is handled specially on uninstallation. |
28 continue | 30 continue |
29 fi | 31 fi |
30 echo Delete \"\$INSTDIR\\$file\" >> @CMAKE_CURRENT_BINARY_DIR@/filelist_un.nsh | 32 echo Delete \"\$INSTDIR\\$file\" >> @CMAKE_CURRENT_BINARY_DIR@/filelist_un.nsh |
31 done | 33 done |
34 | |
35 cd $TMPDIR/licenses | |
36 echo SetOutPath \"\$INSTDIR\\licenses\" >> @CMAKE_CURRENT_BINARY_DIR@/filelist_in.nsh | |
37 for file in `find * -type f`; do | |
38 echo File \"\${files_dir}\${path_sep}licenses\${path_sep}$file\" >> @CMAKE_CURRENT_BINARY_DIR@/filelist_in.nsh | |
39 echo Delete \"\$INSTDIR\\licenses\\$file\" >> @CMAKE_CURRENT_BINARY_DIR@/filelist_un.nsh | |
40 done | |
41 echo RmDir \"\$INSTDIR\\licenses\" >> @CMAKE_CURRENT_BINARY_DIR@/filelist_un.nsh | |
42 | |
32 cd $TMPDIR/doc | 43 cd $TMPDIR/doc |
33 | 44 |
34 for curdir in `find * -maxdepth 0 -type d -not -path .`; do | 45 for curdir in `find * -maxdepth 0 -type d -not -path .`; do |
35 cd $curdir | 46 cd $curdir |
36 curpath=\"\$INSTDIR\\doc\\$curdir\" | 47 curpath=\"\$INSTDIR\\doc\\$curdir\" |