-#!/bin/bash
-if [ "`which makensis 2>/dev/null`" ] ; then
- echo "Checking NSIS... OK"
-else
- echo "Checking NSIS... IS NOT INSTALLED"
- exit 1
-fi
-
-# build exe
-makensis $1
-
-# sign if defined
-if [ "$SIGNTOOL_PATH" != "" ] && [ -f "$SIGNTOOL_PATH" ]
-then
- if [ "$SIGNFILE_PATH" != "" ] && [ -f "$SIGNFILE_PATH" ]
- then
- if [ "$SIGNPASSWORD" != "" ]
- then
- "$SIGNTOOL_PATH" "sign" "//f" "$SIGNFILE_PATH" "//p" "${SIGNPASSWORD}" "$SRCDIR/build/inst-manager.exe"
- else
- echo "Skip signing... Signing password is not defined!"
- fi
- else
- echo "Skip signing... Signing file does not exist!"
- fi
-else
- echo "Skip signing... Signing tool does not exist!"
-fi
+#!/bin/bash\r
+if [ "`which makensis 2>/dev/null`" ] ; then\r
+ echo "Checking NSIS... OK"\r
+else\r
+ echo "Checking NSIS... IS NOT INSTALLED"\r
+ exit 1\r
+fi\r
+\r
+# build exe\r
+makensis $1\r
+\r
+# sign if defined\r
+#if [ "$SIGNTOOL_PATH" != "" ] && [ -f "$SIGNTOOL_PATH" ]\r
+#then\r
+# if [ "$SIGNFILE_PATH" != "" ] && [ -f "$SIGNFILE_PATH" ]\r
+# then\r
+# if [ "$SIGNPASSWORD" != "" ]\r
+# then\r
+# "$SIGNTOOL_PATH" "sign" "//f" "$SIGNFILE_PATH" "//p" "${SIGNPASSWORD}" "$SRCDIR/build/inst-manager.exe"\r
+# else\r
+# echo "Skip signing... Signing password is not defined!"\r
+# fi\r
+# else\r
+# echo "Skip signing... Signing file does not exist!"\r
+# fi\r
+#else\r
+# echo "Skip signing... Signing tool does not exist!"\r
+#fi\r