version 1.25, 2012/03/17 19:23:40
|
version 1.30, 2012/10/08 20:17:01
|
Line 27
|
Line 27
|
|
|
VERSION=$(cat version) |
VERSION=$(cat version) |
|
|
sed "s/@PACKAGE_VERSION@/$VERSION/g" <gforthmi.sh.in >gforthmi.sh |
|
|
|
for i in lib/gforth/$VERSION/libcc-named/*.la |
for i in lib/gforth/$VERSION/libcc-named/*.la |
do |
do |
sed "s/dependency_libs='.*'/dependency_libs=''/g" <$i >$i+ |
sed "s/dependency_libs='.*'/dependency_libs=''/g" <$i >$i+ |
Line 49 AllowNoIcons=1
|
Line 47 AllowNoIcons=1
|
InfoBeforeFile=COPYING |
InfoBeforeFile=COPYING |
Compression=lzma |
Compression=lzma |
DisableStartupPrompt=yes |
DisableStartupPrompt=yes |
|
ChangesEnvironment=yes |
OutputBaseFilename=gforth-$VERSION |
OutputBaseFilename=gforth-$VERSION |
|
|
[Messages] |
[Messages] |
Line 94 Source: "gforthmi.sh"; DestDir: "{app}"
|
Line 93 Source: "gforthmi.sh"; DestDir: "{app}"
|
$(ls doc/gforth | sed -e 's:/:\\:g' -e 's,^\(..*\)$,Source: "doc\\gforth\\\1"; DestDir: "{app}\\doc\\gforth"; Components: help,g') |
$(ls doc/gforth | sed -e 's:/:\\:g' -e 's,^\(..*\)$,Source: "doc\\gforth\\\1"; DestDir: "{app}\\doc\\gforth"; Components: help,g') |
$(ls doc/vmgen | sed -e 's:/:\\:g' -e 's,^\(..*\)$,Source: "doc\\vmgen\\\1"; DestDir: "{app}\\doc\\vmgen"; Components: help,g') |
$(ls doc/vmgen | sed -e 's:/:\\:g' -e 's,^\(..*\)$,Source: "doc\\vmgen\\\1"; DestDir: "{app}\\doc\\vmgen"; Components: help,g') |
$(ls lib/gforth/$VERSION/libcc-named | sed -e 's:/:\\:g' -e 's,^\(..*\)$,Source: "lib\\gforth\\'$VERSION'\\libcc-named\\\1"; DestDir: "{app}\\lib\\gforth\\'$VERSION'\\libcc-named",g') |
$(ls lib/gforth/$VERSION/libcc-named | sed -e 's:/:\\:g' -e 's,^\(..*\)$,Source: "lib\\gforth\\'$VERSION'\\libcc-named\\\1"; DestDir: "{app}\\lib\\gforth\\'$VERSION'\\libcc-named",g') |
|
$(ls lib/gforth/$VERSION/libcc-named/.libs | sed -e 's:/:\\:g' -e 's,^\(..*\)$,Source: "lib\\gforth\\'$VERSION'\\libcc-named\\.libs\\\1"; DestDir: "{app}\\lib\\gforth\\'$VERSION'\\libcc-named\\.libs",g') |
$(ls include/gforth/$VERSION | sed -e 's:/:\\:g' -e 's,^\(..*\)$,Source: "engine\\\1"; DestDir: "{app}\\include\\gforth\\'$VERSION'",g') |
$(ls include/gforth/$VERSION | sed -e 's:/:\\:g' -e 's,^\(..*\)$,Source: "engine\\\1"; DestDir: "{app}\\include\\gforth\\'$VERSION'",g') |
$(make distfiles -f Makedist EXE=.exe | tr ' ' '\n' | grep -v engine.*exe | (while read i; do |
$(make distfiles -f Makedist EXE=.exe | tr ' ' '\n' | grep -v engine.*exe | (while read i; do |
if [ ! -d $i ]; then echo $i; fi |
if [ ! -d $i ]; then echo $i; fi |
Line 113 Name: "{group}\Gforth"; Filename: "{app}
|
Line 113 Name: "{group}\Gforth"; Filename: "{app}
|
Name: "{group}\Gforth-fast"; Filename: "{app}\gforth-fast.exe"; WorkingDir: "{app}" |
Name: "{group}\Gforth-fast"; Filename: "{app}\gforth-fast.exe"; WorkingDir: "{app}" |
Name: "{group}\Gforth-dict"; Filename: "{app}\gforth-dict.exe"; WorkingDir: "{app}" |
Name: "{group}\Gforth-dict"; Filename: "{app}\gforth-dict.exe"; WorkingDir: "{app}" |
Name: "{group}\Gforth-itc"; Filename: "{app}\gforth-itc.exe"; WorkingDir: "{app}" |
Name: "{group}\Gforth-itc"; Filename: "{app}\gforth-itc.exe"; WorkingDir: "{app}" |
Name: "{group}\Gforth-prof"; Filename: "{app}\gforth-prof.exe"; WorkingDir: "{app}" |
|
Name: "{group}\Gforth Manual"; Filename: "{app}\doc\gforth\index.html"; WorkingDir: "{app}"; Components: help |
Name: "{group}\Gforth Manual"; Filename: "{app}\doc\gforth\index.html"; WorkingDir: "{app}"; Components: help |
Name: "{group}\Gforth Manual (PDF)"; Filename: "{app}\doc\gforth.pdf"; WorkingDir: "{app}"; Components: help |
Name: "{group}\Gforth Manual (PDF)"; Filename: "{app}\doc\gforth.pdf"; WorkingDir: "{app}"; Components: help |
Name: "{group}\VMgen Manual"; Filename: "{app}\doc\vmgen\index.html"; WorkingDir: "{app}"; Components: help |
Name: "{group}\VMgen Manual"; Filename: "{app}\doc\vmgen\index.html"; WorkingDir: "{app}"; Components: help |
Line 121 Name: "{group}\Bash"; Filename: "{app}\s
|
Line 120 Name: "{group}\Bash"; Filename: "{app}\s
|
Name: "{group}\Uninstall Gforth"; Filename: "{uninstallexe}" |
Name: "{group}\Uninstall Gforth"; Filename: "{uninstallexe}" |
|
|
[Run] |
[Run] |
Filename: "{app}\gforth.exe"; WorkingDir: "{app}"; Parameters: "fixpath.fs gforth-fast.exe" |
Filename: "{app}\sh.exe"; WorkingDir: "{app}"; Parameters: "-c ""./gforthmi.sh || read""" |
Filename: "{app}\gforth.exe"; WorkingDir: "{app}"; Parameters: "fixpath.fs gforth-ditc.exe" |
Filename: "{app}\sh.exe"; WorkingDir: "{app}"; Parameters: "-c ""./gforth fixpath.fs gforth-fast.exe || read""" |
Filename: "{app}\gforth.exe"; WorkingDir: "{app}"; Parameters: "fixpath.fs gforth-itc.exe" |
Filename: "{app}\sh.exe"; WorkingDir: "{app}"; Parameters: "-c ""./gforth fixpath.fs gforth-ditc.exe || read""" |
Filename: "{app}\gforth.exe"; WorkingDir: "{app}"; Parameters: "fixpath.fs gforth-prof.exe" |
Filename: "{app}\sh.exe"; WorkingDir: "{app}"; Parameters: "-c ""./gforth fixpath.fs gforth-itc.exe || read""" |
Filename: "{app}\gforth-fast.exe"; WorkingDir: "{app}"; Parameters: "fixpath.fs gforth.exe" |
Filename: "{app}\sh.exe"; WorkingDir: "{app}"; Parameters: "-c ""./gforth-fast fixpath.fs gforth.exe || read""" |
Filename: "{app}\sh.exe"; WorkingDir: "{app}"; Parameters: "./gforthmi.sh" |
|
|
|
[UninstallDelete] |
[UninstallDelete] |
Type: files; Name: "{app}\gforth.fi" |
Type: files; Name: "{app}\gforth.fi" |
Type: files; Name: "{app}\temp-image.fi1" |
Type: files; Name: "{app}\temp-image.fi1" |
Type: files; Name: "{app}\temp-image.fi2" |
Type: files; Name: "{app}\temp-image.fi2" |
|
|
|
[Registry] |
|
Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"; ValueType: expandsz; ValueName: "Path"; ValueData: "{olddata};{app}"; Check: NeedsAddPath(ExpandConstant('{app}')) |
|
|
;[Registry] |
;[Registry] |
;registry commented out |
;registry commented out |
; WorkingDir: "{app}"; Parameter quick reference: |
; WorkingDir: "{app}"; Parameter quick reference: |
Line 149 Type: files; Name: "{app}\temp-image.fi2
|
Line 150 Type: files; Name: "{app}\temp-image.fi2
|
;HKCR, "forthblock"; STRING, "Forth Block", |
;HKCR, "forthblock"; STRING, "Forth Block", |
;HKCR, "forthblock", "EditFlags", DWORD, "00000000", |
;HKCR, "forthblock", "EditFlags", DWORD, "00000000", |
;HKCR, "forthblock\DefaultIcon"; STRING, "{sys}\System32\shell32.dll,61" |
;HKCR, "forthblock\DefaultIcon"; STRING, "{sys}\System32\shell32.dll,61" |
|
|
|
[Code] |
|
function NeedsAddPath(Param: string): boolean; |
|
var |
|
OrigPath: string; |
|
begin |
|
if not RegQueryStringValue(HKEY_LOCAL_MACHINE,'SYSTEM\CurrentControlSet\Control\Session Manager\Environment', 'Path', OrigPath) |
|
then begin |
|
Result := True; |
|
exit; |
|
end; |
|
// look for the path with leading and trailing semicolon |
|
// Pos() returns 0 if not found |
|
Result := Pos(';' + UpperCase(Param) + ';', ';' + UpperCase(OrigPath) + ';') = 0; |
|
if Result = True then |
|
Result := Pos(';' + UpperCase(Param) + '\;', ';' + UpperCase(OrigPath) + ';') = 0; |
|
end; |
EOT |
EOT |
|
|
sed -e 's/$/\r/' <README >README.txt |
sed -e 's/$/\r/' <README >README.txt |