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

version 1.2, 2003/03/09 12:54:32 version 1.6, 2003/08/24 22:58:54
Line 1 Line 1
 #!/bin/bash  #!/bin/bash
   
 #Copyright (C) 2000 Free Software Foundation, Inc.  #Copyright (C) 2000,2003 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 >iss.txt
 # copy the resulting iss.txt to the location of your Windows installation  # copy the resulting iss.txt 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  Bits=32
 AppName=Gforth  AppName=Gforth
 AppVerName=gforth 0.5.0  AppVerName=$(./gforth -v 2>&1)
 AppCopyright=Copyright 1995,1996,1997,1998,2000 Free Software Foundation  AppCopyright=Copyright 1995,1996,1997,1998,2000,2003 Free Software Foundation
 DefaultDirName=gforth  DefaultDirName=gforth
 DefaultGroupName=Gforth  DefaultGroupName=Gforth
 AllowNoIcons=1  AllowNoIcons=1
 LicenseFile=COPYING  LicenseFile=COPYING
   
 [Dirs]  [Dirs]
 $(make distfiles -f Makedist | tr ' ' '\n' | (while read i; do  $(make distfiles -f Makedist | tr ' ' '\n' | (while read i; do
   while [ ! -z "$i" ]    while [ ! -z "$i" ]
   do    do
     if [ -d $i ]; then echo $i; fi      if [ -d $i ]; then echo $i; fi
     if [ "${i%/*}" != "$i" ]; then i="${i%/*}"; else i=""; fi      if [ "${i%/*}" != "$i" ]; then i="${i%/*}"; else i=""; fi
   done    done
 done) | sort -u | sed \  done) | sort -u | sed \
   -e 's:/:\\:g' \    -e 's:/:\\:g' \
   -e 's:^\(..*\)$:{app}\\\1:g')    -e 's:^\(..*\)$:{app}\\\1:g')
   
 [Files]  [Files]
 ; Parameter quick reference:  ; Parameter quick reference:
 ;   "Source filename", "Dest. filename", Copy mode, Flags  ;   "Source filename", "Dest. filename", Copy mode, Flags
 "README.txt", "{app}\README.txt", copy_normal, flag_isreadme  "README.txt", "{app}\README.txt", copy_normal, flag_isreadme
 "cygwin1.dll", "{app}\cygwin1.dll", copy_normal,  "cygwin1.dll", "{app}\cygwin1.dll", copy_normal,
 "gforth.fi", "{app}\gforth.fi", copy_normal,  "sh.exe", "{app}\sh.exe", copy_normal,
 $(make distfiles -f Makedist | tr ' ' '\n' | (while read i; do  "gforth.fi", "{app}\gforth.fi", copy_normal,
   if [ ! -d $i ]; then echo $i; fi  $(make distfiles -f Makedist EXE=.exe | tr ' ' '\n' | (while read i; do
 done) | sed \    if [ ! -d $i ]; then echo $i; fi
   -e 's:/:\\:g' \  done) | sed \
   -e 's:^\(..*\)$:"\1", "{app}\\\1", copy_normal,:g')    -e 's:/:\\:g' \
     -e 's:^\(..*\)$:"\1", "{app}\\\1", copy_normal,:g')
 [Icons]  
 ; Parameter quick reference:  [Icons]
 ;   "Icon title", "File name", "Parameters", "Working dir (can leave blank)",  ; Parameter quick reference:
 ;   "Custom icon filename (leave blank to use the default icon)", Icon index  ;   "Icon title", "File name", "Parameters", "Working dir (can leave blank)",
 "Gforth", "{app}\gforth.exe", "", "{app}", , 0  ;   "Custom icon filename (leave blank to use the default icon)", Icon index
 "Gforth-fast", "{app}\gforth-fast.exe", "", "{app}", , 0  "Gforth", "{app}\gforth.exe", "", "{app}", , 0
   "Gforth-fast", "{app}\gforth-fast.exe", "", "{app}", , 0
 [Run]  "Gforth-dict", "{app}\gforth-dict.exe", "", "{app}", , 0
 "{app}\gforth.exe", "{app}\fixpath.fs {app} gforth-fast.exe",  "Gforth-itc", "{app}\gforth-itc.exe", "", "{app}", , 0
 "{app}\gforth.exe", "{app}\fixpath.fs {app} gforth-ditc.exe",  "Gforth-prof", "{app}\gforth-prof.exe", "", "{app}", , 0
 "{app}\gforth-fast.exe", "{app}\fixpath.fs {app} gforth.exe",  
   [Run]
 [Registry]  "{app}\gforth.exe", "-i {app}\gforth.fi {app}\fixpath.fs {app} gforth-fast.exe",
 ; Parameter quick reference:  "{app}\gforth.exe", "-i {app}\gforth.fi {app}\fixpath.fs {app} gforth-ditc.exe",
 ;   "Root key", "Subkey", "Value name", Data type, "Data", Flags  "{app}\gforth.exe", "-i {app}\gforth.fi {app}\fixpath.fs {app} gforth-itc.exe",
 HKCR, ".fs", "", STRING, "forthstream",  "{app}\gforth.exe", "-i {app}\gforth.fi {app}\fixpath.fs {app} gforth-prof.exe",
 HKCR, ".fs", "Content Type", STRING, "application/forth",  "{app}\gforth-fast.exe", "-i {app}\gforth.fi {app}\fixpath.fs {app} gforth.exe",
 HKCR, ".fb", "", STRING, "forthblock",  
 HKCR, ".fb", "Content Type", STRING, "application/forth-block",  ;[Registry]
 HKCR, "forthstream", "", STRING, "Forth Source",  ;registry commented out
 HKCR, "forthstream", "EditFlags", DWORD, "00000000",  ; Parameter quick reference:
 HKCR, "forthstream\DefaultIcon", "", STRING, "{sys}\System32\shell32.dll,61"  ;   "Root key", "Subkey", "Value name", Data type, "Data", Flags
 HKCR, "forthstream\Shell", "", STRING, ""  ;HKCR, ".fs", "", STRING, "forthstream",
 HKCR, "forthstream\Shell\Open\command", "", STRING, "{app}\gforth.exe %1"  ;HKCR, ".fs", "Content Type", STRING, "application/forth",
 HKCR, "forthblock", "", STRING, "Forth Block",  ;HKCR, ".fb", "", STRING, "forthblock",
 HKCR, "forthblock", "EditFlags", DWORD, "00000000",  ;HKCR, ".fb", "Content Type", STRING, "application/forth-block",
 HKCR, "forthblock\DefaultIcon", "", STRING, "{sys}\System32\shell32.dll,61"  ;HKCR, "forthstream", "", STRING, "Forth Source",
 EOT  ;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.6


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