aheinecke@405: # 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@340: NSSDIR="/home/andre/ubuntu/src/mxe/usr/i686-w64-mingw32.static/nss-3.12.7/bin/" aheinecke@340: MYPATH=$(dirname `readlink -f $0`) aheinecke@340: aheinecke@340: TMPDIR=$(mktemp -d) aheinecke@340: aheinecke@340: EXEFILES=$(find . -name cinst.exe -o -name m13ui.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@340: -Dcompany="Intevation GmbH" \ aheinecke@340: -Dversion_number=0.0.0.1 \ aheinecke@340: -Dsetupname="renameme.exe" \ aheinecke@340: -Dproductname="Really please rename me" \ aheinecke@340: -Dproductname_short="renameme" $MYPATH/renameme.nsi aheinecke@340: rm -r $TMPDIR