Annotation of gforth/iss.sh, revision 1.3

1.1       pazsan      1: #!/bin/bash
1.2       anton       2: 
1.3     ! anton       3: #Copyright (C) 2000,2003 Free Software Foundation, Inc.
1.2       anton       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: 
1.1       pazsan     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: Bits=32
                     35: AppName=Gforth
                     36: AppVerName=gforth 0.5.0
1.3     ! anton      37: AppCopyright=Copyright © 1995,1996,1997,1998,2000,2003 Free Software Foundation
1.1       pazsan     38: DefaultDirName=gforth
                     39: DefaultGroupName=Gforth
                     40: AllowNoIcons=1
                     41: LicenseFile=COPYING
                     42: 
                     43: [Dirs]
                     44: $(make distfiles -f Makedist | tr ' ' '\n' | (while read i; do
                     45:   while [ ! -z "$i" ]
                     46:   do
                     47:     if [ -d $i ]; then echo $i; fi
                     48:     if [ "${i%/*}" != "$i" ]; then i="${i%/*}"; else i=""; fi
                     49:   done
                     50: done) | sort -u | sed \
                     51:   -e 's:/:\\:g' \
                     52:   -e 's:^\(..*\)$:{app}\\\1:g')
                     53: 
                     54: [Files]
                     55: ; Parameter quick reference:
                     56: ;   "Source filename", "Dest. filename", Copy mode, Flags
                     57: "README.txt", "{app}\README.txt", copy_normal, flag_isreadme
                     58: "cygwin1.dll", "{app}\cygwin1.dll", copy_normal,
                     59: "gforth.fi", "{app}\gforth.fi", copy_normal,
                     60: $(make distfiles -f Makedist | tr ' ' '\n' | (while read i; do
                     61:   if [ ! -d $i ]; then echo $i; fi
                     62: done) | sed \
                     63:   -e 's:/:\\:g' \
                     64:   -e 's:^\(..*\)$:"\1", "{app}\\\1", copy_normal,:g')
                     65: 
                     66: [Icons]
                     67: ; Parameter quick reference:
                     68: ;   "Icon title", "File name", "Parameters", "Working dir (can leave blank)",
                     69: ;   "Custom icon filename (leave blank to use the default icon)", Icon index
                     70: "Gforth", "{app}\gforth.exe", "", "{app}", , 0
                     71: "Gforth-fast", "{app}\gforth-fast.exe", "", "{app}", , 0
                     72: 
                     73: [Run]
                     74: "{app}\gforth.exe", "{app}\fixpath.fs {app} gforth-fast.exe",
                     75: "{app}\gforth.exe", "{app}\fixpath.fs {app} gforth-ditc.exe",
                     76: "{app}\gforth-fast.exe", "{app}\fixpath.fs {app} gforth.exe",
                     77: 
                     78: [Registry]
                     79: ; Parameter quick reference:
                     80: ;   "Root key", "Subkey", "Value name", Data type, "Data", Flags
                     81: HKCR, ".fs", "", STRING, "forthstream",
                     82: HKCR, ".fs", "Content Type", STRING, "application/forth",
                     83: HKCR, ".fb", "", STRING, "forthblock",
                     84: HKCR, ".fb", "Content Type", STRING, "application/forth-block",
                     85: HKCR, "forthstream", "", STRING, "Forth Source",
                     86: HKCR, "forthstream", "EditFlags", DWORD, "00000000",
                     87: HKCR, "forthstream\DefaultIcon", "", STRING, "{sys}\System32\shell32.dll,61"
                     88: HKCR, "forthstream\Shell", "", STRING, ""
                     89: HKCR, "forthstream\Shell\Open\command", "", STRING, "{app}\gforth.exe %1"
                     90: HKCR, "forthblock", "", STRING, "Forth Block",
                     91: HKCR, "forthblock", "EditFlags", DWORD, "00000000",
                     92: HKCR, "forthblock\DefaultIcon", "", STRING, "{sys}\System32\shell32.dll,61"
                     93: EOT

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