summaryrefslogtreecommitdiffstats
path: root/contrib/mingw/options.nsi
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2007-08-20 02:12:48 +0000
committerChris Johns <chrisj@rtems.org>2007-08-20 02:12:48 +0000
commit598aab1fe570501e585539ccf30c26450d0b1088 (patch)
treeba34ec03f23d8c89672f06aee8b89c3db5e0bbe1 /contrib/mingw/options.nsi
parentSpacing. (diff)
downloadrtems-598aab1fe570501e585539ccf30c26450d0b1088.tar.bz2
2007-08-20 Chris Johns <chisj@rtems.org>
* filewrite.nsi, getparameters.nsi, instance-check.nsi, mingw-path.nsi, sm-dummy.nsi, strslash.nsi, strstr.nsi, options.nsi: Added the shared between the 2 installer scripts. * msys-path.nsi: Fixed the last LF bug. * rtems-autotools.nsi, rtems-tools.nsi: Fixed the instance check, added a start menu, remove pages from target installers. * rtems.ini: Fixed the URL links. Added support link. * rtems_logo.bmp: Trimmed a little more to get a better image. * ba-wrap.sh: Stop on a error. * build-exes.sh: Use the option parameter variables. Change the order the section appear in the installer.
Diffstat (limited to 'contrib/mingw/options.nsi')
-rw-r--r--contrib/mingw/options.nsi54
1 files changed, 54 insertions, 0 deletions
diff --git a/contrib/mingw/options.nsi b/contrib/mingw/options.nsi
new file mode 100644
index 0000000000..b100978fb4
--- /dev/null
+++ b/contrib/mingw/options.nsi
@@ -0,0 +1,54 @@
+;
+; $Id$
+;
+; RTEMS Tools Installer.
+;
+; Copyright Chris Johns (chrisj@rtems.org)
+;
+
+!ifndef OPTIONS_DEFINED
+!define OPTIONS_DEFINED
+
+!include "${RTEMS_SOURCE}/strstr.nsi"
+!include "${RTEMS_SOURCE}/getparameters.nsi"
+
+Var "SilentOption"
+Var "DebugOption"
+Var "DebugScriptOption"
+
+Function CheckCmdLineOption
+ Exch $R0
+ Call GetParameters
+ Push $R0
+ Call StrStr
+ Exch $R1
+ StrCmp $R1 "" 0 +2
+ StrCpy $R0 "not-found"
+ Pop $R1
+ Exch $R0
+FunctionEnd
+
+Function CheckSilent
+ StrCpy $SilentOption ""
+ Push $R0
+ Push "/SILENT"
+ Call CheckCmdLineOption
+ Pop $R0
+ StrCmp $R0 "not-found" +2 0
+ StrCpy $SilentOption "/S"
+ Pop $R0
+FunctionEnd
+
+Function CheckDebug
+ StrCpy $DebugOption ""
+ Push $R0
+ Push "/DEBUG"
+ Call CheckCmdLineOption
+ Pop $R0
+ StrCmp $R0 "not-found" +3 0
+ StrCpy $DebugScriptOption "-d"
+ StrCpy $DebugOption "/DEBUG"
+ Pop $R0
+FunctionEnd
+
+!endif