Annotation of gforth/iss.sh, revision 1.7

1.4       pazsan      1: #!/bin/bash
                      2: 
                      3: #Copyright (C) 2000,2003 Free Software Foundation, Inc.
                      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: 
                     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 -v 2>&1)
                     37: AppCopyright=Copyright © 1995,1996,1997,1998,2000,2003 Free Software Foundation
                     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')
1.7     ! pazsan     53: {app}\doc\gforth
        !            54: {app}\doc\vmgen
1.4       pazsan     55: 
                     56: [Files]
                     57: ; Parameter quick reference:
                     58: ;   "Source filename", "Dest. filename", Copy mode, Flags
                     59: "README.txt", "{app}\README.txt", copy_normal, flag_isreadme
                     60: "cygwin1.dll", "{app}\cygwin1.dll", copy_normal,
1.6       pazsan     61: "sh.exe", "{app}\sh.exe", copy_normal,
1.4       pazsan     62: "gforth.fi", "{app}\gforth.fi", copy_normal,
1.7     ! pazsan     63: $(make html >/dev/null; ls doc/gforth | sed -e 's:/:\\:g' -e 's:^\(..*\)$:"doc\\gforth\\\1", "{app}\\doc\\gforth\\\1", copy_normal,:g')
        !            64: $(ls doc/vmgen | sed -e 's:/:\\:g' -e 's:^\(..*\)$:"doc\\vmgen\\\1", "{app}\\doc\\vmgen\\\1", copy_normal,:g')
1.4       pazsan     65: $(make distfiles -f Makedist EXE=.exe | tr ' ' '\n' | (while read i; do
                     66:   if [ ! -d $i ]; then echo $i; fi
                     67: done) | sed \
                     68:   -e 's:/:\\:g' \
                     69:   -e 's:^\(..*\)$:"\1", "{app}\\\1", copy_normal,:g')
                     70: 
                     71: [Icons]
                     72: ; Parameter quick reference:
                     73: ;   "Icon title", "File name", "Parameters", "Working dir (can leave blank)",
                     74: ;   "Custom icon filename (leave blank to use the default icon)", Icon index
                     75: "Gforth", "{app}\gforth.exe", "", "{app}", , 0
                     76: "Gforth-fast", "{app}\gforth-fast.exe", "", "{app}", , 0
                     77: "Gforth-dict", "{app}\gforth-dict.exe", "", "{app}", , 0
                     78: "Gforth-itc", "{app}\gforth-itc.exe", "", "{app}", , 0
1.6       pazsan     79: "Gforth-prof", "{app}\gforth-prof.exe", "", "{app}", , 0
1.7     ! pazsan     80: "Gforth Manual", "{app}\doc\gforth\index.html", "", "{app}", , 0
        !            81: "VMgen Manual", "{app}\doc\vmgen\index.html", "", "{app}", , 0
1.4       pazsan     82: 
                     83: [Run]
1.6       pazsan     84: "{app}\gforth.exe", "-i {app}\gforth.fi {app}\fixpath.fs {app} gforth-fast.exe",
                     85: "{app}\gforth.exe", "-i {app}\gforth.fi {app}\fixpath.fs {app} gforth-ditc.exe",
                     86: "{app}\gforth.exe", "-i {app}\gforth.fi {app}\fixpath.fs {app} gforth-itc.exe",
                     87: "{app}\gforth.exe", "-i {app}\gforth.fi {app}\fixpath.fs {app} gforth-prof.exe",
                     88: "{app}\gforth-fast.exe", "-i {app}\gforth.fi {app}\fixpath.fs {app} gforth.exe",
1.4       pazsan     89: 
1.5       pazsan     90: ;[Registry]
                     91: ;registry commented out
1.4       pazsan     92: ; Parameter quick reference:
                     93: ;   "Root key", "Subkey", "Value name", Data type, "Data", Flags
1.5       pazsan     94: ;HKCR, ".fs", "", STRING, "forthstream",
                     95: ;HKCR, ".fs", "Content Type", STRING, "application/forth",
                     96: ;HKCR, ".fb", "", STRING, "forthblock",
                     97: ;HKCR, ".fb", "Content Type", STRING, "application/forth-block",
                     98: ;HKCR, "forthstream", "", STRING, "Forth Source",
                     99: ;HKCR, "forthstream", "EditFlags", DWORD, "00000000",
                    100: ;HKCR, "forthstream\DefaultIcon", "", STRING, "{sys}\System32\shell32.dll,61"
                    101: ;HKCR, "forthstream\Shell", "", STRING, ""
                    102: ;HKCR, "forthstream\Shell\Open\command", "", STRING, "{app}\gforth.exe %1"
                    103: ;HKCR, "forthblock", "", STRING, "Forth Block",
                    104: ;HKCR, "forthblock", "EditFlags", DWORD, "00000000",
                    105: ;HKCR, "forthblock\DefaultIcon", "", STRING, "{sys}\System32\shell32.dll,61"
1.4       pazsan    106: EOT

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