diff options
author | Fredrik Gustafsson <[email protected]> | 2013-01-17 16:37:48 +0100 |
---|---|---|
committer | Fredrik Gustafsson <[email protected]> | 2013-01-17 16:37:48 +0100 |
commit | 64e585da09339be629f05195cfcff7b01dcb0497 (patch) | |
tree | 9dd719002fa6dc372154c0adefe1855e55890616 /erts/etc/win32/nsis/dll_version_helper.sh | |
parent | 2b0c190aa88716b24866b0a751cfe6252348ab00 (diff) | |
parent | a0e362765d9d4afb0211f49eb787d2139b3eb7be (diff) | |
download | otp-64e585da09339be629f05195cfcff7b01dcb0497.tar.gz otp-64e585da09339be629f05195cfcff7b01dcb0497.tar.bz2 otp-64e585da09339be629f05195cfcff7b01dcb0497.zip |
Merge tag 'build/maint-r15/2013-01-14_20.31' into maint-r15
Diffstat (limited to 'erts/etc/win32/nsis/dll_version_helper.sh')
-rwxr-xr-x | erts/etc/win32/nsis/dll_version_helper.sh | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/erts/etc/win32/nsis/dll_version_helper.sh b/erts/etc/win32/nsis/dll_version_helper.sh index 96e4532b7a..0d9ba4248d 100755 --- a/erts/etc/win32/nsis/dll_version_helper.sh +++ b/erts/etc/win32/nsis/dll_version_helper.sh @@ -25,6 +25,13 @@ # echo "8.0.50727.763" # exit 0 +if [ "$1" = "-n" ]; then + SWITCH=$1 + shift +else + SWITCH="" +fi + cat > hello.c <<EOF #include <windows.h> #include <stdio.h> @@ -42,11 +49,16 @@ if [ '!' -f hello.exe.manifest ]; then # need another way of getting the version DLLNAME=`dumpbin.exe -imports hello.exe | egrep MSVCR.*dll` DLLNAME=`echo $DLLNAME` + if [ '!' -z "$1" ]; then + FILETOLOOKIN=$1 + else + FILETOLOOKIN=$DLLNAME + fi cat > helper.c <<EOF #include <windows.h> #include <stdio.h> -#define REQ_MODULE "$DLLNAME" +#define REQ_MODULE "$FILETOLOOKIN" int main(void) { @@ -100,7 +112,7 @@ else NAME=`grep '<assemblyIdentity' hello.exe.manifest | sed 's,.*name=.[A-Za-z\.]*\([0-9]*\).*,msvcr\1.dll,g' | grep -v '<'` fi #rm -f hello.c hello.obj hello.exe hello.exe.manifest helper.c helper.obj helper.exe helper.exe.manifest -if [ "$1" = "-n" ]; then +if [ "$SWITCH" = "-n" ]; then ASKEDFOR=$NAME else ASKEDFOR=$VERSION |