| 1 : |
pazsan
|
1.4
|
#!/bin/bash |
| 2 : |
|
|
|
| 3 : |
|
|
#Copyright (C) 2000,2003 Free Software Foundation, Inc. |
| 4 : |
|
|
|
| 5 : |
|
|
#This file is part of Gforth. |
| 6 : |
|
|
|
| 7 : |
|
|
#Gforth is free software; you can redistribute it and/or |
| 8 : |
|
|
#modify it under the terms of the GNU General Public License |
| 9 : |
|
|
#as published by the Free Software Foundation; either version 2 |
| 10 : |
|
|
#of the License, or (at your option) any later version. |
| 11 : |
|
|
|
| 12 : |
|
|
#This program is distributed in the hope that it will be useful, |
| 13 : |
|
|
#but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 : |
|
|
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.#See the |
| 15 : |
|
|
#GNU General Public License for more details. |
| 16 : |
|
|
|
| 17 : |
|
|
#You should have received a copy of the GNU General Public License |
| 18 : |
|
|
#along with this program; if not, write to the Free Software |
| 19 : |
|
|
#Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA. |
| 20 : |
|
|
|
| 21 : |
|
|
# This is the horror shell script to create an automatic install for |
| 22 : |
|
|
# Windoze. |
| 23 : |
|
|
# Note that I use sed to create a setup file |
| 24 : |
|
|
|
| 25 : |
|
|
# use iss.sh >iss.txt |
| 26 : |
|
|
# copy the resulting iss.txt to the location of your Windows installation |
| 27 : |
|
|
# of Gforth, and start the setup compiler there. |
| 28 : |
|
|
|
| 29 : |
|
|
cat <<EOT |
| 30 : |
|
|
; This is the setup script for 4stack on Windows |
| 31 : |
|
|
; Setup program is Inno Setup |
| 32 : |
|
|
|
| 33 : |
|
|
[Setup] |
| 34 : |
|
|
AppName=Gforth |
| 35 : |
|
|
AppVerName=$(./gforth -v 2>&1) |
| 36 : |
|
|
AppCopyright=Copyright © 1995,1996,1997,1998,2000,2003 Free Software Foundation |
| 37 : |
pazsan
|
1.8
|
DefaultDirName={pf}\gforth |
| 38 : |
pazsan
|
1.4
|
DefaultGroupName=Gforth |
| 39 : |
|
|
AllowNoIcons=1 |
| 40 : |
pazsan
|
1.8
|
InfoBeforeFile=COPYING |
| 41 : |
|
|
Compression=bzip |
| 42 : |
|
|
DisableStartupPrompt=yes |
| 43 : |
|
|
|
| 44 : |
|
|
[Messages] |
| 45 : |
|
|
WizardInfoBefore=License Agreement |
| 46 : |
|
|
InfoBeforeLabel=Gforth is free software. |
| 47 : |
|
|
InfoBeforeClickLabel=You don't have to accept the GPL to run the program. You only have to accept this license if you want to modify, copy, or distribute this program. |
| 48 : |
|
|
|
| 49 : |
|
|
[Components] |
| 50 : |
|
|
Name: "help"; Description: "HTML Documentation"; Types: full |
| 51 : |
|
|
Name: "info"; Description: "GNU info Documentation"; Types: full |
| 52 : |
|
|
Name: "print"; Description: "Postscript Documentation for printout"; Types: full |
| 53 : |
|
|
Name: "objects"; Description: "Compiler generated intermediate stuff"; Types: full |
| 54 : |
pazsan
|
1.4
|
|
| 55 : |
|
|
[Dirs] |
| 56 : |
pazsan
|
1.8
|
$(make distfiles -f Makedist | tr ' ' '\n' | grep -v CVS | (while read i; do |
| 57 : |
pazsan
|
1.4
|
while [ ! -z "$i" ] |
| 58 : |
|
|
do |
| 59 : |
|
|
if [ -d $i ]; then echo $i; fi |
| 60 : |
|
|
if [ "${i%/*}" != "$i" ]; then i="${i%/*}"; else i=""; fi |
| 61 : |
|
|
done |
| 62 : |
|
|
done) | sort -u | sed \ |
| 63 : |
|
|
-e 's:/:\\:g' \ |
| 64 : |
pazsan
|
1.8
|
-e 's,^\(..*\)$,Name: "{app}\\\1",g') |
| 65 : |
|
|
Name: "{app}\doc\gforth" |
| 66 : |
|
|
Name: "{app}\doc\vmgen" |
| 67 : |
pazsan
|
1.4
|
|
| 68 : |
|
|
[Files] |
| 69 : |
|
|
; Parameter quick reference: |
| 70 : |
|
|
; "Source filename", "Dest. filename", Copy mode, Flags |
| 71 : |
pazsan
|
1.8
|
Source: "README.txt"; DestDir: "{app}"; Flags: isreadme |
| 72 : |
|
|
Source: "cygwin1.dll"; DestDir: "{app}" |
| 73 : |
|
|
Source: "sh.exe"; DestDir: "{app}" |
| 74 : |
|
|
Source: "gforth.fi"; DestDir: "{app}" |
| 75 : |
|
|
$(ls doc/gforth | sed -e 's:/:\\:g' -e 's,^\(..*\)$,Source: "doc\\gforth\\\1"; DestDir: "{app}\\doc\\gforth"; Components: help,g') |
| 76 : |
|
|
$(ls doc/vmgen | sed -e 's:/:\\:g' -e 's,^\(..*\)$,Source: "doc\\vmgen\\\1"; DestDir: "{app}\\doc\\vmgen"; Components: help,g') |
| 77 : |
|
|
$(make distfiles -f Makedist EXE=.exe | tr ' ' '\n' | grep -v engine.*exe | (while read i; do |
| 78 : |
pazsan
|
1.4
|
if [ ! -d $i ]; then echo $i; fi |
| 79 : |
|
|
done) | sed \ |
| 80 : |
|
|
-e 's:/:\\:g' \ |
| 81 : |
pazsan
|
1.8
|
-e 's,^\(..*\)\\\([^\\]*\)$,Source: "\1\\\2"; DestDir: "{app}\\\1",g' \ |
| 82 : |
|
|
-e 's,^\([^\\]*\)$,Source: "\1"; DestDir: "{app}",g' \ |
| 83 : |
|
|
-e 's,^\(.*\.[oib]".*\),\1; Components: objects,g' \ |
| 84 : |
|
|
-e 's,^\(.*\.ps".*\),\1; Components: print,g' \ |
| 85 : |
|
|
-e 's,^\(.*\.info.*".*\),\1; Components: info,g') |
| 86 : |
pazsan
|
1.4
|
|
| 87 : |
|
|
[Icons] |
| 88 : |
|
|
; Parameter quick reference: |
| 89 : |
|
|
; "Icon title", "File name", "Parameters", "Working dir (can leave blank)", |
| 90 : |
|
|
; "Custom icon filename (leave blank to use the default icon)", Icon index |
| 91 : |
pazsan
|
1.8
|
Name: "{group}\Gforth"; Filename: "{app}\gforth.exe"; WorkingDir: "{app}" |
| 92 : |
|
|
Name: "{group}\Gforth-fast"; Filename: "{app}\gforth-fast.exe"; WorkingDir: "{app}" |
| 93 : |
|
|
Name: "{group}\Gforth-dict"; Filename: "{app}\gforth-dict.exe"; WorkingDir: "{app}" |
| 94 : |
|
|
Name: "{group}\Gforth-itc"; Filename: "{app}\gforth-itc.exe"; WorkingDir: "{app}" |
| 95 : |
|
|
Name: "{group}\Gforth-prof"; Filename: "{app}\gforth-prof.exe"; WorkingDir: "{app}" |
| 96 : |
|
|
Name: "{group}\Gforth Manual"; Filename: "{app}\doc\gforth\index.html"; WorkingDir: "{app}"; Components: help |
| 97 : |
|
|
Name: "{group}\VMgen Manual"; Filename: "{app}\doc\vmgen\index.html"; WorkingDir: "{app}"; Components: help |
| 98 : |
|
|
Name: "{group}\Uninstall Gforth"; Filename: "{uninstallexe}" |
| 99 : |
pazsan
|
1.4
|
|
| 100 : |
|
|
[Run] |
| 101 : |
pazsan
|
1.8
|
Filename: "{app}\gforth.exe"; WorkingDir: "{app}"; Parameters: "fixpath.fs {app} gforth-fast.exe" |
| 102 : |
|
|
Filename: "{app}\gforth.exe"; WorkingDir: "{app}"; Parameters: "fixpath.fs {app} gforth-ditc.exe" |
| 103 : |
|
|
Filename: "{app}\gforth.exe"; WorkingDir: "{app}"; Parameters: "fixpath.fs {app} gforth-itc.exe" |
| 104 : |
|
|
Filename: "{app}\gforth.exe"; WorkingDir: "{app}"; Parameters: "fixpath.fs {app} gforth-prof.exe" |
| 105 : |
|
|
Filename: "{app}\gforth-fast.exe"; WorkingDir: "{app}"; Parameters: "fixpath.fs {app} gforth.exe" |
| 106 : |
pazsan
|
1.4
|
|
| 107 : |
pazsan
|
1.5
|
;[Registry] |
| 108 : |
|
|
;registry commented out |
| 109 : |
pazsan
|
1.8
|
; WorkingDir: "{app}"; Parameter quick reference: |
| 110 : |
pazsan
|
1.4
|
; "Root key", "Subkey", "Value name", Data type, "Data", Flags |
| 111 : |
pazsan
|
1.8
|
;HKCR, ".fs"; STRING, "forthstream", |
| 112 : |
pazsan
|
1.5
|
;HKCR, ".fs", "Content Type", STRING, "application/forth", |
| 113 : |
pazsan
|
1.8
|
;HKCR, ".fb"; STRING, "forthblock", |
| 114 : |
pazsan
|
1.5
|
;HKCR, ".fb", "Content Type", STRING, "application/forth-block", |
| 115 : |
pazsan
|
1.8
|
;HKCR, "forthstream"; STRING, "Forth Source", |
| 116 : |
pazsan
|
1.5
|
;HKCR, "forthstream", "EditFlags", DWORD, "00000000", |
| 117 : |
pazsan
|
1.8
|
;HKCR, "forthstream\DefaultIcon"; STRING, "{sys}\System32\shell32.dll,61" |
| 118 : |
|
|
;HKCR, "forthstream\Shell"; STRING, "" |
| 119 : |
|
|
;HKCR, "forthstream\Shell\Open\command"; STRING, "{app}\gforth.exe %1" |
| 120 : |
|
|
;HKCR, "forthblock"; STRING, "Forth Block", |
| 121 : |
pazsan
|
1.5
|
;HKCR, "forthblock", "EditFlags", DWORD, "00000000", |
| 122 : |
pazsan
|
1.8
|
;HKCR, "forthblock\DefaultIcon"; STRING, "{sys}\System32\shell32.dll,61" |
| 123 : |
pazsan
|
1.4
|
EOT |