source: rtems/contrib/mingw/options.nsi @ a5c8f11

4.104.114.95
Last change on this file since a5c8f11 was 598aab1f, checked in by Chris Johns <chrisj@…>, on 08/20/07 at 02:12:48

2007-08-20 Chris Johns <chisj@…>

  • 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.
  • Property mode set to 100644
File size: 879 bytes
Line 
1;
2; $Id$
3;
4; RTEMS Tools Installer.
5;
6; Copyright Chris Johns (chrisj@rtems.org)
7;
8
9!ifndef OPTIONS_DEFINED
10!define OPTIONS_DEFINED
11
12!include "${RTEMS_SOURCE}/strstr.nsi"
13!include "${RTEMS_SOURCE}/getparameters.nsi"
14
15Var "SilentOption"
16Var "DebugOption"
17Var "DebugScriptOption"
18
19Function CheckCmdLineOption
20  Exch $R0
21  Call GetParameters
22  Push $R0
23  Call StrStr
24  Exch $R1
25  StrCmp $R1 "" 0 +2
26  StrCpy $R0 "not-found"
27  Pop $R1
28  Exch $R0
29FunctionEnd
30
31Function CheckSilent
32  StrCpy $SilentOption ""
33  Push $R0
34  Push "/SILENT"
35  Call CheckCmdLineOption
36  Pop $R0
37  StrCmp $R0 "not-found" +2 0
38  StrCpy $SilentOption "/S"
39  Pop $R0
40FunctionEnd
41
42Function CheckDebug
43  StrCpy $DebugOption ""
44  Push $R0
45  Push "/DEBUG"
46  Call CheckCmdLineOption
47  Pop $R0
48  StrCmp $R0 "not-found" +3 0
49  StrCpy $DebugScriptOption "-d"
50  StrCpy $DebugOption "/DEBUG"
51  Pop $R0
52FunctionEnd
53
54!endif
Note: See TracBrowser for help on using the repository browser.