Diff for /gforth/iss.sh between versions 1.1 and 1.26

version 1.1, 2000/12/10 22:59:12 version 1.26, 2012/03/18 00:12:28
Line 1 Line 1
 #!/bin/bash  #!/bin/bash
 # This is the horror shell script to create an automatic install for  
 # Windoze.  #Copyright (C) 2000,2003,2006,2007,2009,2011 Free Software Foundation, Inc.
 # Note that I use sed to create a setup file  
   #This file is part of Gforth.
 # use iss.sh >iss.txt  
 # copy the resulting iss.txt to the location of your Windows installation  #Gforth is free software; you can redistribute it and/or
 # of Gforth, and start the setup compiler there.  #modify it under the terms of the GNU General Public License
   #as published by the Free Software Foundation, either version 3
 cat <<EOT  #of the License, or (at your option) any later version.
 ; This is the setup script for 4stack on Windows  
 ; Setup program is Inno Setup  #This program is distributed in the hope that it will be useful,
   #but WITHOUT ANY WARRANTY; without even the implied warranty of
 [Setup]  #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.#See the
 Bits=32  #GNU General Public License for more details.
 AppName=Gforth  
 AppVerName=gforth 0.5.0  #You should have received a copy of the GNU General Public License
 AppCopyright=Copyright © 1995-2000 by Free Software Foundation  #along with this program; if not, see http://www.gnu.org/licenses/.
 DefaultDirName=gforth  
 DefaultGroupName=Gforth  # This is the horror shell script to create an automatic install for
 AllowNoIcons=1  # Windoze.
 LicenseFile=COPYING  # Note that I use sed to create a setup file
   
 [Dirs]  # use iss.sh >gforth.iss
 $(make distfiles -f Makedist | tr ' ' '\n' | (while read i; do  # copy the resulting *.iss to the location of your Windows installation
   while [ ! -z "$i" ]  # of Gforth, and start the setup compiler there.
   do  
     if [ -d $i ]; then echo $i; fi  VERSION=$(cat version)
     if [ "${i%/*}" != "$i" ]; then i="${i%/*}"; else i=""; fi  
   done  sed "s/@PACKAGE_VERSION@/$VERSION/g" <gforthmi.sh.in >gforthmi.sh
 done) | sort -u | sed \  
   -e 's:/:\\:g' \  for i in lib/gforth/$VERSION/libcc-named/*.la
   -e 's:^\(..*\)$:{app}\\\1:g')  do
       sed "s/dependency_libs='.*'/dependency_libs=''/g" <$i >$i+
 [Files]      mv $i+ $i
 ; Parameter quick reference:  done
 ;   "Source filename", "Dest. filename", Copy mode, Flags  
 "README.txt", "{app}\README.txt", copy_normal, flag_isreadme  cat <<EOT
 "cygwin1.dll", "{app}\cygwin1.dll", copy_normal,  ; This is the setup script for Gforth on Windows
 "gforth.fi", "{app}\gforth.fi", copy_normal,  ; Setup program is Inno Setup
 $(make distfiles -f Makedist | tr ' ' '\n' | (while read i; do  
   if [ ! -d $i ]; then echo $i; fi  [Setup]
 done) | sed \  AppName=Gforth
   -e 's:/:\\:g' \  AppVerName=Gforth $VERSION
   -e 's:^\(..*\)$:"\1", "{app}\\\1", copy_normal,:g')  AppCopyright=Copyright © 1995,1996,1997,1998,2000,2003,2006,2007,2008,2009,2010,2011 Free Software Foundation
   DefaultDirName={pf}\gforth
 [Icons]  DefaultGroupName=Gforth
 ; Parameter quick reference:  AllowNoIcons=1
 ;   "Icon title", "File name", "Parameters", "Working dir (can leave blank)",  InfoBeforeFile=COPYING
 ;   "Custom icon filename (leave blank to use the default icon)", Icon index  Compression=lzma
 "Gforth", "{app}\gforth.exe", "", "{app}", , 0  DisableStartupPrompt=yes
 "Gforth-fast", "{app}\gforth-fast.exe", "", "{app}", , 0  OutputBaseFilename=gforth-$VERSION
   
 [Run]  [Messages]
 "{app}\gforth.exe", "{app}\fixpath.fs {app} gforth-fast.exe",  WizardInfoBefore=License Agreement
 "{app}\gforth.exe", "{app}\fixpath.fs {app} gforth-ditc.exe",  InfoBeforeLabel=Gforth is free software.
 "{app}\gforth-fast.exe", "{app}\fixpath.fs {app} gforth.exe",  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.
   
 [Registry]  [Components]
 ; Parameter quick reference:  Name: "help"; Description: "HTML Documentation"; Types: full
 ;   "Root key", "Subkey", "Value name", Data type, "Data", Flags  Name: "info"; Description: "GNU info Documentation"; Types: full
 HKCR, ".fs", "", STRING, "forthstream",  Name: "print"; Description: "Postscript Documentation for printout"; Types: full
 HKCR, ".fs", "Content Type", STRING, "application/forth",  Name: "objects"; Description: "Compiler generated intermediate stuff"; Types: full
 HKCR, ".fb", "", STRING, "forthblock",  
 HKCR, ".fb", "Content Type", STRING, "application/forth-block",  [Dirs]
 HKCR, "forthstream", "", STRING, "Forth Source",  $(make distfiles -f Makedist | tr ' ' '\n' | grep -v CVS | (while read i; do
 HKCR, "forthstream", "EditFlags", DWORD, "00000000",    while [ ! -z "$i" ]
 HKCR, "forthstream\DefaultIcon", "", STRING, "{sys}\System32\shell32.dll,61"    do
 HKCR, "forthstream\Shell", "", STRING, ""      if [ -d $i ]; then echo $i; fi
 HKCR, "forthstream\Shell\Open\command", "", STRING, "{app}\gforth.exe %1"      if [ "${i%/*}" != "$i" ]; then i="${i%/*}"; else i=""; fi
 HKCR, "forthblock", "", STRING, "Forth Block",    done
 HKCR, "forthblock", "EditFlags", DWORD, "00000000",  done) | sort -u | sed \
 HKCR, "forthblock\DefaultIcon", "", STRING, "{sys}\System32\shell32.dll,61"    -e 's:/:\\:g' \
 EOT    -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"
   
   [Files]
   ; Parameter quick reference:
   ;   "Source filename", "Dest. filename", Copy mode, Flags
   Source: "README.txt"; DestDir: "{app}"; Flags: isreadme
   Source: "c:\cygwin\bin\sh.exe"; DestDir: "{app}"
   Source: "c:\cygwin\bin\cygwin1.dll"; DestDir: "{app}"
   Source: "c:\cygwin\bin\cyggcc_s-1.dll"; DestDir: "{app}"
   Source: "c:\cygwin\bin\cygintl-8.dll"; DestDir: "{app}"
   Source: "c:\cygwin\bin\cygiconv-2.dll"; DestDir: "{app}"
   Source: "c:\cygwin\bin\cygltdl-7.dll"; DestDir: "{app}"
   Source: "c:\cygwin\bin\cygreadline7.dll"; DestDir: "{app}"
   Source: "c:\cygwin\bin\cygncursesw-10.dll"; DestDir: "{app}"
   Source: "c:\cygwin\bin\cygffi-4.dll"; DestDir: "{app}"
   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/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/.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')
   $(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 \
     -e 's:/:\\:g' \
     -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,^\(.*\.p\)s\(".*\),\1df\2; Components: print,g' \
     -e 's,^\(.*\.info.*".*\),\1; Components: info,g')
   
   [Icons]
   ; Parameter quick reference:
   ;   "Icon title", "File name", "Parameters", "Working dir (can leave blank)",
   ;   "Custom icon filename (leave blank to use the default icon)", Icon index
   Name: "{group}\Gforth"; Filename: "{app}\gforth.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-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]
   Filename: "{app}\gforth.exe"; WorkingDir: "{app}"; Parameters: "fixpath.fs gforth-fast.exe"
   Filename: "{app}\gforth.exe"; WorkingDir: "{app}"; Parameters: "fixpath.fs gforth-ditc.exe"
   Filename: "{app}\gforth.exe"; WorkingDir: "{app}"; Parameters: "fixpath.fs gforth-itc.exe"
   Filename: "{app}\gforth.exe"; WorkingDir: "{app}"; Parameters: "fixpath.fs gforth-prof.exe"
   Filename: "{app}\gforth-fast.exe"; WorkingDir: "{app}"; Parameters: "fixpath.fs gforth.exe"
   Filename: "{app}\sh.exe"; WorkingDir: "{app}"; Parameters: "./gforthmi.sh"
   
   [UninstallDelete]
   Type: files; Name: "{app}\gforth.fi"
   Type: files; Name: "{app}\temp-image.fi1"
   Type: files; Name: "{app}\temp-image.fi2"
   
   ;[Registry]
   ;registry commented out
   ; WorkingDir: "{app}"; Parameter quick reference:
   ;   "Root key", "Subkey", "Value name", Data type, "Data", Flags
   ;HKCR, ".fs"; STRING, "forthstream",
   ;HKCR, ".fs", "Content Type", STRING, "application/forth",
   ;HKCR, ".fb"; STRING, "forthblock",
   ;HKCR, ".fb", "Content Type", STRING, "application/forth-block",
   ;HKCR, "forthstream"; STRING, "Forth Source",
   ;HKCR, "forthstream", "EditFlags", DWORD, "00000000",
   ;HKCR, "forthstream\DefaultIcon"; STRING, "{sys}\System32\shell32.dll,61"
   ;HKCR, "forthstream\Shell"; STRING, ""
   ;HKCR, "forthstream\Shell\Open\command"; STRING, "{app}\gforth.exe %1"
   ;HKCR, "forthblock"; STRING, "Forth Block",
   ;HKCR, "forthblock", "EditFlags", DWORD, "00000000",
   ;HKCR, "forthblock\DefaultIcon"; STRING, "{sys}\System32\shell32.dll,61"
   EOT
   
   sed -e 's/$/\r/' <README >README.txt

Removed from v.1.1  
changed lines
  Added in v.1.26


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>