Diff for /gforth/iss.sh between versions 1.2 and 1.14

version 1.2, 2003/03/09 12:54:32 version 1.14, 2006/04/22 12:21:36
Line 1 Line 1
 #!/bin/bash  #!/bin/bash
   
 #Copyright (C) 2000 Free Software Foundation, Inc.  #Copyright (C) 2000,2003,2006 Free Software Foundation, Inc.
   
 #This file is part of Gforth.  #This file is part of Gforth.
   
 #Gforth is free software; you can redistribute it and/or  #Gforth is free software; you can redistribute it and/or
 #modify it under the terms of the GNU General Public License  #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 2
 #of the License, or (at your option) any later version.  #of the License, or (at your option) any later version.
   
 #This program is distributed in the hope that it will be useful,  #This program is distributed in the hope that it will be useful,
 #but WITHOUT ANY WARRANTY; without even the implied warranty of  #but WITHOUT ANY WARRANTY; without even the implied warranty of
 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.#See the  #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.#See the
 #GNU General Public License for more details.  #GNU General Public License for more details.
   
 #You should have received a copy of the GNU General Public License  #You should have received a copy of the GNU General Public License
 #along with this program; if not, write to the Free Software  #along with this program; if not, write to the Free Software
 #Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.  #Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
   
 # This is the horror shell script to create an automatic install for  # This is the horror shell script to create an automatic install for
 # Windoze.  # Windoze.
 # Note that I use sed to create a setup file  # Note that I use sed to create a setup file
   
 # use iss.sh >iss.txt  # use iss.sh >gforth.iss
 # copy the resulting iss.txt to the location of your Windows installation  # copy the resulting *.iss to the location of your Windows installation
 # of Gforth, and start the setup compiler there.  # of Gforth, and start the setup compiler there.
   
 cat <<EOT  cat <<EOT
 ; This is the setup script for 4stack on Windows  ; This is the setup script for 4stack on Windows
 ; Setup program is Inno Setup  ; Setup program is Inno Setup
   
 [Setup]  [Setup]
 Bits=32  AppName=Gforth
 AppName=Gforth  AppVerName=Gforth $(cat version)
 AppVerName=gforth 0.5.0  AppCopyright=Copyright 1995,1996,1997,1998,2000,2003,2006 Free Software Foundation
 AppCopyright=Copyright 1995,1996,1997,1998,2000 Free Software Foundation  DefaultDirName={pf}\gforth
 DefaultDirName=gforth  DefaultGroupName=Gforth
 DefaultGroupName=Gforth  AllowNoIcons=1
 AllowNoIcons=1  InfoBeforeFile=COPYING
 LicenseFile=COPYING  Compression=bzip
   DisableStartupPrompt=yes
 [Dirs]  
 $(make distfiles -f Makedist | tr ' ' '\n' | (while read i; do  [Messages]
   while [ ! -z "$i" ]  WizardInfoBefore=License Agreement
   do  InfoBeforeLabel=Gforth is free software.
     if [ -d $i ]; then echo $i; fi  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.
     if [ "${i%/*}" != "$i" ]; then i="${i%/*}"; else i=""; fi  
   done  [Components]
 done) | sort -u | sed \  Name: "help"; Description: "HTML Documentation"; Types: full
   -e 's:/:\\:g' \  Name: "info"; Description: "GNU info Documentation"; Types: full
   -e 's:^\(..*\)$:{app}\\\1:g')  Name: "print"; Description: "Postscript Documentation for printout"; Types: full
   Name: "objects"; Description: "Compiler generated intermediate stuff"; Types: full
 [Files]  
 ; Parameter quick reference:  [Dirs]
 ;   "Source filename", "Dest. filename", Copy mode, Flags  $(make distfiles -f Makedist | tr ' ' '\n' | grep -v CVS | (while read i; do
 "README.txt", "{app}\README.txt", copy_normal, flag_isreadme    while [ ! -z "$i" ]
 "cygwin1.dll", "{app}\cygwin1.dll", copy_normal,    do
 "gforth.fi", "{app}\gforth.fi", copy_normal,      if [ -d $i ]; then echo $i; fi
 $(make distfiles -f Makedist | tr ' ' '\n' | (while read i; do      if [ "${i%/*}" != "$i" ]; then i="${i%/*}"; else i=""; fi
   if [ ! -d $i ]; then echo $i; fi    done
 done) | sed \  done) | sort -u | sed \
   -e 's:/:\\:g' \    -e 's:/:\\:g' \
   -e 's:^\(..*\)$:"\1", "{app}\\\1", copy_normal,:g')    -e 's,^\(..*\)$,Name: "{app}\\\1",g')
   Name: "{app}\doc\gforth"
 [Icons]  Name: "{app}\doc\vmgen"
 ; Parameter quick reference:  
 ;   "Icon title", "File name", "Parameters", "Working dir (can leave blank)",  [Files]
 ;   "Custom icon filename (leave blank to use the default icon)", Icon index  ; Parameter quick reference:
 "Gforth", "{app}\gforth.exe", "", "{app}", , 0  ;   "Source filename", "Dest. filename", Copy mode, Flags
 "Gforth-fast", "{app}\gforth-fast.exe", "", "{app}", , 0  Source: "README.txt"; DestDir: "{app}"; Flags: isreadme
   Source: "cygwin1.dll"; DestDir: "{app}"
 [Run]  Source: "sh.exe"; DestDir: "{app}"
 "{app}\gforth.exe", "{app}\fixpath.fs {app} gforth-fast.exe",  Source: "cygintl-3.dll"; DestDir: "{app}"
 "{app}\gforth.exe", "{app}\fixpath.fs {app} gforth-ditc.exe",  Source: "cygiconv-2.dll"; DestDir: "{app}"
 "{app}\gforth-fast.exe", "{app}\fixpath.fs {app} gforth.exe",  Source: "cygreadline6.dll"; DestDir: "{app}"
   Source: "cygncurses-8.dll"; DestDir: "{app}"
 [Registry]  Source: "cygffi-2-00-beta.dll"; DestDir: "{app}"
 ; Parameter quick reference:  Source: "gforth.fi"; DestDir: "{app}"
 ;   "Root key", "Subkey", "Value name", Data type, "Data", Flags  $(ls doc/gforth | sed -e 's:/:\\:g' -e 's,^\(..*\)$,Source: "doc\\gforth\\\1"; DestDir: "{app}\\doc\\gforth"; Components: help,g')
 HKCR, ".fs", "", STRING, "forthstream",  $(ls doc/vmgen | sed -e 's:/:\\:g' -e 's,^\(..*\)$,Source: "doc\\vmgen\\\1"; DestDir: "{app}\\doc\\vmgen"; Components: help,g')
 HKCR, ".fs", "Content Type", STRING, "application/forth",  $(make distfiles -f Makedist EXE=.exe | tr ' ' '\n' | grep -v engine.*exe | (while read i; do
 HKCR, ".fb", "", STRING, "forthblock",    if [ ! -d $i ]; then echo $i; fi
 HKCR, ".fb", "Content Type", STRING, "application/forth-block",  done) | sed \
 HKCR, "forthstream", "", STRING, "Forth Source",    -e 's:/:\\:g' \
 HKCR, "forthstream", "EditFlags", DWORD, "00000000",    -e 's,^\(..*\)\\\([^\\]*\)$,Source: "\1\\\2"; DestDir: "{app}\\\1",g' \
 HKCR, "forthstream\DefaultIcon", "", STRING, "{sys}\System32\shell32.dll,61"    -e 's,^\([^\\]*\)$,Source: "\1"; DestDir: "{app}",g' \
 HKCR, "forthstream\Shell", "", STRING, ""    -e 's,^\(.*\.[oib]".*\),\1; Components: objects,g' \
 HKCR, "forthstream\Shell\Open\command", "", STRING, "{app}\gforth.exe %1"    -e 's,^\(.*\.p\)s\(".*\),\1df\2; Components: print,g' \
 HKCR, "forthblock", "", STRING, "Forth Block",    -e 's,^\(.*\.info.*".*\),\1; Components: info,g')
 HKCR, "forthblock", "EditFlags", DWORD, "00000000",  
 HKCR, "forthblock\DefaultIcon", "", STRING, "{sys}\System32\shell32.dll,61"  [Icons]
 EOT  ; 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 {app} gforth-fast.exe"
   Filename: "{app}\gforth.exe"; WorkingDir: "{app}"; Parameters: "fixpath.fs {app} gforth-ditc.exe"
   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"
   
   ;[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

Removed from v.1.2  
changed lines
  Added in v.1.14


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