--- gforth/iss.sh 2003/08/30 22:26:39 1.8 +++ gforth/iss.sh 2008/12/26 17:00:19 1.21 @@ -1,12 +1,12 @@ #!/bin/bash -#Copyright (C) 2000,2003 Free Software Foundation, Inc. +#Copyright (C) 2000,2003,2006,2007 Free Software Foundation, Inc. #This file is part of Gforth. #Gforth is free software; you can redistribute it and/or #modify it under the terms of the GNU General Public License -#as published by the Free Software Foundation; either version 2 +#as published by the Free Software Foundation, either version 3 #of the License, or (at your option) any later version. #This program is distributed in the hope that it will be useful, @@ -15,31 +15,33 @@ #GNU General Public License for more details. #You should have received a copy of the GNU General Public License -#along with this program; if not, write to the Free Software -#Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA. +#along with this program; if not, see http://www.gnu.org/licenses/. # This is the horror shell script to create an automatic install for # Windoze. # Note that I use sed to create a setup file -# use iss.sh >iss.txt -# copy the resulting iss.txt to the location of your Windows installation +# use iss.sh >gforth.iss +# copy the resulting *.iss to the location of your Windows installation # of Gforth, and start the setup compiler there. +VERSION=$(cat version) + cat <&1) -AppCopyright=Copyright © 1995,1996,1997,1998,2000,2003 Free Software Foundation +AppVerName=Gforth $VERSION +AppCopyright=Copyright © 1995,1996,1997,1998,2000,2003,2006,2007,2008 Free Software Foundation DefaultDirName={pf}\gforth DefaultGroupName=Gforth AllowNoIcons=1 InfoBeforeFile=COPYING Compression=bzip DisableStartupPrompt=yes +OutputBaseFilename=gforth-$VERSION [Messages] WizardInfoBefore=License Agreement @@ -64,6 +66,8 @@ done) | sort -u | sed \ -e 's,^\(..*\)$,Name: "{app}\\\1",g') Name: "{app}\doc\gforth" Name: "{app}\doc\vmgen" +Name: "{app}\lib\gforth\\$VERSION\libcc-named" +Name: "{app}\include\gforth\\$VERSION\libcc-named" [Files] ; Parameter quick reference: @@ -71,9 +75,17 @@ Name: "{app}\doc\vmgen" Source: "README.txt"; DestDir: "{app}"; Flags: isreadme Source: "cygwin1.dll"; DestDir: "{app}" Source: "sh.exe"; DestDir: "{app}" -Source: "gforth.fi"; DestDir: "{app}" +Source: "cygintl-8.dll"; DestDir: "{app}" +Source: "cygiconv-2.dll"; DestDir: "{app}" +Source: "cygltdl-3.dll"; DestDir: "{app}" +Source: "cygreadline6.dll"; DestDir: "{app}" +Source: "cygncurses-8.dll"; DestDir: "{app}" +Source: "cygffi-2-00-beta.dll"; DestDir: "{app}" +Source: "gforthfi.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/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 include/gforth/$VERSION/libcc-named | sed -e 's:/:\\:g' -e 's,^\(..*\)$,Source: "include\\gforth\\'$VERSION'\\libcc-named\\\1"; DestDir: "{app}\\include\\gforth\\'$VERSION'\\libcc-named",g') $(make distfiles -f Makedist EXE=.exe | tr ' ' '\n' | grep -v engine.*exe | (while read i; do if [ ! -d $i ]; then echo $i; fi done) | sed \ @@ -81,7 +93,7 @@ done) | sed \ -e 's,^\(..*\)\\\([^\\]*\)$,Source: "\1\\\2"; DestDir: "{app}\\\1",g' \ -e 's,^\([^\\]*\)$,Source: "\1"; DestDir: "{app}",g' \ -e 's,^\(.*\.[oib]".*\),\1; Components: objects,g' \ - -e 's,^\(.*\.ps".*\),\1; Components: print,g' \ + -e 's,^\(.*\.p\)s\(".*\),\1df\2; Components: print,g' \ -e 's,^\(.*\.info.*".*\),\1; Components: info,g') [Icons] @@ -94,7 +106,9 @@ Name: "{group}\Gforth-dict"; Filename: " 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 (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}\Bash"; Filename: "{app}\sh.exe"; WorkingDir: "{app}" Name: "{group}\Uninstall Gforth"; Filename: "{uninstallexe}" [Run] @@ -103,6 +117,7 @@ Filename: "{app}\gforth.exe"; WorkingDir Filename: "{app}\gforth.exe"; WorkingDir: "{app}"; Parameters: "fixpath.fs {app} gforth-itc.exe" Filename: "{app}\gforth.exe"; WorkingDir: "{app}"; Parameters: "fixpath.fs {app} gforth-prof.exe" Filename: "{app}\gforth-fast.exe"; WorkingDir: "{app}"; Parameters: "fixpath.fs {app} gforth.exe" +Filename: "{app}\sh.exe"; WorkingDir: "{app}"; Parameters: "./gforthfi.sh" ;[Registry] ;registry commented out @@ -121,3 +136,5 @@ Filename: "{app}\gforth-fast.exe"; Worki ;HKCR, "forthblock", "EditFlags", DWORD, "00000000", ;HKCR, "forthblock\DefaultIcon"; STRING, "{sys}\System32\shell32.dll,61" EOT + +sed -e 's/$/\r/' README.txt