Annotation of gforth/iss.sh, revision 1.4

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')
        !            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 EXE=.exe | 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: "Gforth-dict", "{app}\gforth-dict.exe", "", "{app}", , 0
        !            73: "Gforth-itc", "{app}\gforth-itc.exe", "", "{app}", , 0
        !            74: 
        !            75: [Run]
        !            76: "{app}\gforth.exe", "{app}\fixpath.fs {app} gforth-fast.exe",
        !            77: "{app}\gforth.exe", "{app}\fixpath.fs {app} gforth-ditc.exe",
        !            78: "{app}\gforth.exe", "{app}\fixpath.fs {app} gforth-itc.exe",
        !            79: "{app}\gforth-fast.exe", "{app}\fixpath.fs {app} gforth.exe",
        !            80: 
        !            81: [Registry]
        !            82: ; Parameter quick reference:
        !            83: ;   "Root key", "Subkey", "Value name", Data type, "Data", Flags
        !            84: HKCR, ".fs", "", STRING, "forthstream",
        !            85: HKCR, ".fs", "Content Type", STRING, "application/forth",
        !            86: HKCR, ".fb", "", STRING, "forthblock",
        !            87: HKCR, ".fb", "Content Type", STRING, "application/forth-block",
        !            88: HKCR, "forthstream", "", STRING, "Forth Source",
        !            89: HKCR, "forthstream", "EditFlags", DWORD, "00000000",
        !            90: HKCR, "forthstream\DefaultIcon", "", STRING, "{sys}\System32\shell32.dll,61"
        !            91: HKCR, "forthstream\Shell", "", STRING, ""
        !            92: HKCR, "forthstream\Shell\Open\command", "", STRING, "{app}\gforth.exe %1"
        !            93: HKCR, "forthblock", "", STRING, "Forth Block",
        !            94: HKCR, "forthblock", "EditFlags", DWORD, "00000000",
        !            95: HKCR, "forthblock\DefaultIcon", "", STRING, "{sys}\System32\shell32.dll,61"
        !            96: EOT

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