From 7b3596ba1521f201c9416fc7a0385cb7e6c6f495 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 22 Feb 2011 17:29:46 +0100 Subject: Build Win64 Erlang emulator using MSYS Still does not run, just compiles. --- erts/etc/win32/msys_tools/reg_query.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 erts/etc/win32/msys_tools/reg_query.sh (limited to 'erts/etc/win32/msys_tools/reg_query.sh') diff --git a/erts/etc/win32/msys_tools/reg_query.sh b/erts/etc/win32/msys_tools/reg_query.sh new file mode 100644 index 0000000000..ae6d5c3218 --- /dev/null +++ b/erts/etc/win32/msys_tools/reg_query.sh @@ -0,0 +1,24 @@ +#! /bin/sh +BAT_FILE=/tmp/w$$.bat +if [ -z "$1" -o -z "$2" ]; then + echo "Usage:" "$0" ' ' + exit 1 +fi +BACKED=`echo "$1" | sed 's,/,\\\\,g'` +# We need to get the 64bit part of the registry, hence we need to execute +# a 64bit reg.exe, but c:\windows\system32 is redirected to 32bit versions +# if we ate in the 32bit virtual environment, why we need to use the +# sysnative trick to get to the 64bit executable of reg.exe (ouch!) +if [ -d $WINDIR/sysnative ]; then + REG_CMD="$WINDIR\\sysnative\\reg.exe" +else + REG_CMD="reg" +fi +cat > $BAT_FILE <