Files
rtems/contrib/mingw/options.nsi
Joel Sherrill 9b4422a251 Remove All CVS Id Strings Possible Using a Script
Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines
  next to each other after Id string line removed.
+ remove entire comment blocks which only exited to
  contain CVS Ids
+ If the processing left a blank line at the top of
  a file, it was removed.
2012-05-11 08:44:13 -05:00

52 lines
868 B
NSIS

; 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