aheinecke@588: # Copyright (C) 2014 by Bundesamt f�r Sicherheit in der Informationstechnik
aheinecke@405: # Software engineering by Intevation GmbH
aheinecke@405: #
aheinecke@405: # This file is Free Software under the GNU GPL (v>=2)
aheinecke@405: # and comes with ABSOLUTELY NO WARRANTY!
aheinecke@405: # See LICENSE.txt for details.
aheinecke@405: 
aheinecke@340: #!/bin/bash
aheinecke@340: 
aheinecke@340: #NSSDIR is hackish as this will be replaced by static compiling 
aheinecke@340: # anyway
aheinecke@340: 
aheinecke@500: NSSDIR="@NSS_BASE_DIR@/bin/"
aheinecke@340: 
aheinecke@340: TMPDIR=$(mktemp -d)
aheinecke@340: 
aheinecke@490: EXEFILES=$(find . -name cinst.exe -o -name trustbridge.exe -o -name mozilla.exe)
aheinecke@340: 
aheinecke@340: cp $NSSDIR/*.dll $TMPDIR
aheinecke@340: cp $EXEFILES $TMPDIR
aheinecke@340: 
aheinecke@340: echo $TMPDIR
aheinecke@340: makensis -Dfiles_dir=$TMPDIR \
aheinecke@588:     -Dcompany="Bundesamt f�r Sicherheit in der Informationstechnik" \
aheinecke@495:     -Dversion_number=@PROJECT_VERSION@ \
aheinecke@500:     -Dsetupname="@CMAKE_BINARY_DIR@/TrustBridge-@PROJECT_VERSION@.exe" \
aheinecke@410:     -Dproductname="TrustBridge" \
aheinecke@552:     -Dpath_sep="/" \
aheinecke@552:     -Dproductname_short="TrustBridge" @CMAKE_SOURCE_DIR@/packaging/trustbridge.nsi
aheinecke@340: rm -r $TMPDIR