]> git.donarmstrong.com Git - lilypond.git/commitdiff
remove cygwin
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 3 Nov 2006 02:38:45 +0000 (03:38 +0100)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 3 Nov 2006 02:38:45 +0000 (03:38 +0100)
16 files changed:
cygwin/GNUmakefile [deleted file]
cygwin/README.in [deleted file]
cygwin/bug-lilypond-cygwin.sh [deleted file]
cygwin/changelog [deleted file]
cygwin/lily-wins.py [deleted file]
cygwin/lilypond-doc.hint [deleted file]
cygwin/lilypond.hint [deleted file]
cygwin/mknetrel [deleted file]
cygwin/mknetrel.auto [deleted file]
cygwin/mknetrel.cross [deleted file]
cygwin/mknetrel.doc [deleted file]
cygwin/mknetrel.extras [deleted file]
cygwin/mknetrel.libtool [deleted file]
cygwin/mknetrel.patch [deleted file]
cygwin/mknetrel.split [deleted file]
cygwin/postinstall-lilypond.sh [deleted file]

diff --git a/cygwin/GNUmakefile b/cygwin/GNUmakefile
deleted file mode 100644 (file)
index 7e25a64..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-depth = ..
-
-NAME = cygwin
-
-MKNETRELS = mknetrel $(call src-wildcard,mknetrel.*[a-z])
-EXTRA_DIST_FILES = changelog $(MKNETRELS) $(call src-wildcard,*.hint)
-
-SEXECUTABLES=bug-lilypond-cygwin lily-wins
-STEPMAKE_TEMPLATES = install install-out script
-
-include $(depth)/make/stepmake.make
-
-# For Cygwin builds only
-ifneq ($(CYGWIN_BUILD),)
-
-include $(stepdir)/executable-targets.make
-
-POSTINSTALLS=$(call src-wildcard,postinstall*.sh)
-OUT_POSTINSTALLS=$(POSTINSTALLS:%=$(outdir)/%)
-
-$(outdir)/%.sh: %.sh $(config_make)
-       cat $< | sed $(sed-atvariables) > $@
-       chmod 755 $@
-
-default: $(OUT_POSTINSTALLS) $(OUTIN_FILES)
-
-# Avoid collapsed directory constructs '//'
-etc=$(patsubst %/,%, $(dir $(prefix)))/etc
-INSTALLATION_OUT_DIR=$(etc)/postinstall
-INSTALLATION_OUT_FILES=$(OUT_POSTINSTALLS)
-
-endif
-
diff --git a/cygwin/README.in b/cygwin/README.in
deleted file mode 100644 (file)
index 2be5f9a..0000000
+++ /dev/null
@@ -1,108 +0,0 @@
-LilyPond
-------------------------------------------
-LilyPond - The GNU music typesetter.
-
-For more information, tutorial, documentation, packaging instructions, visit:
-  http://lilypond.org
-
-Runtime requirements:
-  bash
-  cygwin-1.5.11 or newer
-  ghostscript
-  glib2-runtime
-  libfontconfig1
-  libfreetype2
-  libguile12-1.6.5-1 or newer
-  libiconv2
-  libintl3
-  pango-runtime
-  python
-
-Suggested:
-  xorg-x11-base
-  emacs or vim
-  ghostscript-x11
-  rxvt
-  libkpathsea4-3.0.0-3 or newer
-  gv
-
-Build requirements:
-  binutils-20040725-2 or newer
-  bison-1.35 or newer
-  coreutils
-  cygwin-1.5.11 or newer
-  findutils
-  flex-2.5.4 or newer
-  gcc-2.95.3-5 or newer
-  glib2-devel
-  guile-devel-1.6.5-1 or newer
-  libfontconfig-devel
-  libfreetype2-devel
-  libguile12-1.6.5-1 or newer
-  libkpathsea4-3.0.0-3 or newer
-  pango-devel
-  python
-  sed
-  tetex-devel-3.0.0-3 or newer
-  texinfo-4.8 or newer
-
-  
-Website/documentation build requirements (lilypond-doc package):
-  tetex-bin
-  tetex-tiny or tetex-base
-  ghostscript or ghostscript-x11
-
-  mftrace, http://www.cs.uu.nl/people/hanwen/mftrace
-  potrace, http://potrace.sourceforge.net
-  netpbm, http://netpbm.sourceforge.net
-  t1utils, http://www.lcdf.org/~eddietwo/type/
-
-Recommended website/documentation build requirements:
-  fontforge, http://fontforge.sourceforge.net
-
-Canonical homepage:
-  http:/lilypond.org
-
-Canonical download:
-  http://lilypond.org/download
-  
-------------------------------------
-
-Build instructions:
-
-  # Unpack lilypond-@TOPLEVEL_VERSION@-1-src.tar.bz2 in /usr/src
-
-    cd /usr/src
-    tar xjf lilypond-@TOPLEVEL_VERSION@-1-src.tar.bz2
-    # (or, if you use setup to install this src package, it will be
-    #  unpacked under /usr/src automatically)
-
-  # Get mknetrel from:
-     cvs -d:pserver:anoncvs@sources.redhat.com:/cvs/cygwin-apps co mknetrel
-
-  # Copy the extra mknetrel script to mknetrel/extra:
-     cp lilypond-@TOPLEVEL_VERSION@-1/cygwin/mknetrel mknetrel/extra/lilypond
-
-  # Build the package:
-
-     ./mknetrel/bin/mknetrel lilypond
-
-This will create:
-  /usr/src/uploads/lilypond-@TOPLEVEL_VERSION@-1-src.tar.bz2
-  /usr/src/uploads/lilypond-@TOPLEVEL_VERSION@-1.tar.bz2
-  /usr/src/uploads/lilypond-doc/lilypond-doc-@TOPLEVEL_VERSION@-1.tar.bz2
-
-------------------
-
-Port notes:
-
-  LilyPond builds ootb with cygwin/mknetrel.
-
-  Cygwin port maintained by: Jan Nieuwenhuizen.
-
-------------------
-
-Please send questions or comments on this Cygwin package or
-installation to the Cygwin mailing list at: cygwin@cygwin.com.
-However, if you're having problems related to LilyPond, please write
-to lilypond-user@gnu.org.  Please do not email the authors directly.
diff --git a/cygwin/bug-lilypond-cygwin.sh b/cygwin/bug-lilypond-cygwin.sh
deleted file mode 100644 (file)
index e3e0925..0000000
+++ /dev/null
@@ -1,104 +0,0 @@
-#!@SHELL@
-# /usr/bin/bug-lilypond-cygwin.sh -- harvest relevant info for bugreport
-#
-# Ideas
-#   * add some kpathsea tricks
-#   * distribute for other platforms too
-#   * failure/success tracking and indication (-> rewrite in python)
-
-set -x
-
-name="$(basename $0)"
-# Running this in new shell may yield deceptive results
-if [ "$name" = "bug-lilypond-cygwin" ]; then
-    # HMM
-    cat <<EOF
-Please source this script, ie do:
-
-    . /usr/bin/bug-lilypond-cygwin > bug.txt
-
-EOF
-fi
-
-docdir=@prefix@/share/doc/lilypond-@TOPLEVEL_VERSION@
-[ ! -d $docdir ] && docdir=@prefix@/doc/lilypond-@TOPLEVEL_VERSION@-1
-[ ! -d $docdir ] && docdir=$(echo @prefix@/share/doc/lilypond-[.-0-9]*)
-[ ! -d $docdir ] && docdir=$(echo @prefix@/doc/lilypond-[.-0-9]*)
-
-echo
-echo Availability of executables
-echo ===========================
-type -p tex
-type -p latex
-type -p kpsewhich
-type -p lilypond-bin
-type -p python
-type -p lilypond
-
-type -p tex.exe
-type -p latex.exe
-type -p kpsewhich.exe
-type -p lilypond-bin.exe
-type -p python.exe
-
-lilypond-bin --version
-python -V
-lilypond --version
-
-
-echo
-echo Test runs
-echo =========
-mkdir -p /tmp/lily
-cd /tmp/lily
-rm -f example-1.* sample2e.*
-ls -l
-latex \\nonstopmode \\input sample2e
-kpsewhich feta20.mf
-kpsewhich feta20.pk
-cp $docdir/input/example-1.ly .
-cp $docdir/input/example-2.ly .
-lilypond example-1.ly
-latex \\nonstopmode \\input example-1.tex
-dvips -o example-1.ps example-1.dvi
-ls -l
-lilypond --verbose example-2
-ls -l
-
-echo
-echo Environment settings
-echo ====================
-# If python is ok and lilypond runs, this all is not really necessary.
-echo HOME="<$HOME>"
-echo SHELL="<$SHELL>"
-echo LILYPONDPREFIX="<$LILYPONDPREFIX>"
-echo TEXMF="<$TEXMF>"
-echo MFINPUTS="<$MFINPUTS>"
-echo TFMFONTS="<$TFMFONTS>"
-echo TEXINPUTS="<$TEXINPUTS>"
-# do we want to know all?
-#set
-
-echo
-echo Registry settings
-echo =================
-regtool get /root/.ly/
-regtool get /root/LilyPond/
-regtool get /root/LilyPond/shell/open/command/
-regtool get /root/.pdf/
-pdfname=$(regtool get /root/.pdf/)
-regtool get /root/$pdfname/shell/open/command/
-regtool get /root/AcroExch.Document/shell/open/command/
-
-echo
-echo System information
-echo ==================
-uname -a
-cygcheck -s
-
-if false; then
-    cat /var/log/setup.log
-    # cat /var/log/setup.log.full
-fi
-
-
diff --git a/cygwin/changelog b/cygwin/changelog
deleted file mode 100644 (file)
index 51e772e..0000000
+++ /dev/null
@@ -1,134 +0,0 @@
-lilypond (2.6.4-1) unstable; urgency=low
-
-  * New upstream release.
-  * New Cygwin maintainer.
-
- -- Jan Nieuwenhuizen <janneke@gnu.org>  Mon, 10 Oct 2005 21:30:49 +0200
-
-lilypond (2.5.12-1) unstable; urgency=low
-
-  * New upstream release.
-  * Several build fixes.
-
- -- Jan Nieuwenhuizen <janneke@gnu.org>  Sat, 26 Feb 2005 10:02:43 +0100
-
-lilypond (2.3.22-1) unstable; urgency=low
-
-  * New upstream release.
-
- -- Jan Nieuwenhuizen <janneke@gnu.org>  Tue, 12 Oct 2004 14:00:15 +0200
-
-lilypond (2.3.20-1) unstable; urgency=low
-
-  * New upstream release.
-
- -- Jan Nieuwenhuizen <janneke@gnu.org>  Thu,  7 Oct 2004 00:38:49 +0200
-
-lilypond (1.9.8-1) unstable; urgency=low
-
-  * New upstream release.
-
- -- Jan Nieuwenhuizen <janneke@gnu.org>  Fri, 19 Sep 2003 23:20:46 +0200
-
-lilypond (1.8.2-1) unstable; urgency=low
-
-  * New upstream release.
-
- -- Jan Nieuwenhuizen <janneke@gnu.org>  Wed, 17 Sep 2003 18:46:53 +0200
-
-lilypond (1.8.1-12) unstable; urgency=low
-
-  * Cygwin build fix: add cygwin-specific profile and postinstall scripts.
-
- -- Jan Nieuwenhuizen <janneke@gnu.org>  Fri, 29 Aug 2003 13:10:17 +0200
-  
-lilypond (1.8.1-11) unstable; urgency=low
-
-  * New upstream release.
-  * ly2dvi fixes for /dev/std* redirection in Python's os.system () for
-    when /bin/sh is the lesser /bin/ash from CVS.
-  * lilypond-book fix from CVS.
-
- -- Jan Nieuwenhuizen <janneke@gnu.org>  Wed, 27 Aug 2003 19:29:23 +0200
-
-lilypond (1.8.0-11) unstable; urgency=low
-
-  * New upstream release.
-  * Build on 1.5.1.
-  * Omit moving of /usr/share/doc -> /usr/doc.
-
- -- Jan Nieuwenhuizen <janneke@gnu.org>  Thu,  7 Aug 2003 17:47:52 +0200
-
-lilypond (1.7.29-11) unstable; urgency=low
-
-  * New upstream release; pre1.8 build.
-  * Build for 1.5 abi.
-
- -- Jan Nieuwenhuizen <janneke@gnu.org>  Sun, 27 Jul 2003 22:44:27 +0200
-
-lilypond (1.7.28-2) unstable; urgency=low
-
-  * New upstream release; pre1.8 build.
-
- -- Jan Nieuwenhuizen <janneke@gnu.org>  Thu, 24 Jul 2003 19:31:59 +0200
-
-lilypond (1.7.25-1) unstable; urgency=low
-
-  * New upstream release: pre1.8 build.
-
- -- Jan Nieuwenhuizen <janneke@gnu.org>  Fri, 18 Jul 2003 14:08:55 +0200
-
-lilypond (1.6.5-1) unstable; urgency=low
-
-  * New upstream release.
-
- -- Jan Nieuwenhuizen <janneke@gnu.org>  Mon,  7 Oct 2002 14:54:12 +0200
-
-lilypond (1.6.4-1) stable; urgency=low
-
-  * New upstream release.
-
- -- Jan Nieuwenhuizen <janneke@gnu.org>  Fri, 20 Sep 2002 23:02:21 +0200
-
-lilypond (1.6.0-1) stable; urgency=low
-
-  * New upstream release.
-
- -- Jan Nieuwenhuizen <janneke@gnu.org>  Mon, 19 Aug 2002 16:03:02 +0200
-
-lilypond (1.5.73-1) unstable; urgency=low
-
-  * New upstream release.
-  * Fix man pages for midi2ly and lilypond.
-
- -- Jan Nieuwenhuizen <janneke@gnu.org>  Wed, 14 Aug 2002 00:58:58 +0200
-
-lilypond (1.5.71.jcn2-1) unstable; urgency=low
-
-  * lilypond-doc.hint (category): doc.
-  * mknetnel: Also install pfa's.
-  
- -- Jan Nieuwenhuizen <janneke@gnu.org>  Fri,  9 Aug 2002 18:28:27 +0200
-
-lilypond (1.5.71.jcn1-1) unstable; urgency=low
-
-  * Python module now named midi.dll.
-  * Fix detection of Cygwin build, which fixes installation of profile.d
-    scripts.
-  * Build fix.
-
- -- Jan Nieuwenhuizen <janneke@gnu.org>  Fri,  9 Aug 2002 17:47:41 +0200
-
-lilypond (1.5.68.jcn1-1) unstable; urgency=low
-
-  * First full mknetrel build.
-
- -- Jan Nieuwenhuizen <janneke@gnu.org>  Thu, 18 Jul 2002 01:35:18 +0200
-
-lilypond (1.5.64.jcn1-1) unstable; urgency=low
-
-  * Initial Release.
-
- -- Jan Nieuwenhuizen <janneke@gnu.org>  Thu,  4 Jul 2002 12:54:08 +0200
-
-
diff --git a/cygwin/lily-wins.py b/cygwin/lily-wins.py
deleted file mode 100644 (file)
index fe7fe3a..0000000
+++ /dev/null
@@ -1,130 +0,0 @@
-#!@PYTHON@
-# lily-wins.py -- LilyPond command for .ly on Windows
-
-import getopt
-import os
-import re
-import sys
-import time
-
-do_debug = 0
-
-def usage ():
-       print 'Usage [-h,--help] lily-wins LY-FILE'
-
-# print debugging stuff for now
-def debug (s):
-       if do_debug:
-               print s
-
-def read_pipe (command):
-       debug ('command:' + command)
-       s = os.popen (command).read ()
-       if s and s[-1] == '\n':
-               return s[:-1]
-       return s 
-
-def system (command):
-       debug ('command:' + command)
-       os.system (command)
-
-def strip_extension (f, ext):
-       (p, e) = os.path.splitext (f)
-       if e == ext:
-               e = ''
-       return p + e
-
-def escape_shell (x):
-       return re.sub ("(\s|[`'\"\\\\])", r'\\\1',x)
-#      return re.sub (r'''([^\\])([`'"\\\s])''', r'\1\\\2', x)
-        # help emacs'" broken python mode
-
-def usage ():
-       print '''lily-wins [options] file
-
-Options supported:
-
-  -h, --help      this help screen
-  -d, --debug     print debugging information
-  
-'''
-       
-debug (`sys.argv`)
-
-########
-# main
-(opts, files)=getopt.getopt (sys.argv[1:],'dh', ['help', 'debug'])
-
-for (o,a) in opts:
-       if o == '-d' or o == '--debug':
-               do_debug = 1
-       elif o == '-h' or o  == '--help':
-               usage ()
-               sys.exit (0)
-
-if files == []:
-       usage ()
-       sys.exit (1)
-       
-native_file = files[0]
-print 'Processing %s ...' % native_file
-file = read_pipe ('/usr/bin/cygpath -au %s' % escape_shell (native_file))
-if not file:
-       file = native_file
-
-cwd = os.getcwd ()
-
-dir = os.path.dirname (file)
-if not dir:
-       dir = '.'
-base = os.path.basename (file)
-stem = strip_extension (base, '.ly')
-debug ( `vars ()`)
-
-native_base = '%(dir)s/%(stem)s' % vars ()
-native_base = read_pipe ('/usr/bin/cygpath -aw %s' % escape_shell (native_base))
-                        
-if not native_base:
-       native_base = '%(dir)s/%(stem)s' % vars ()
-
-pdfname = read_pipe ('/usr/bin/regtool get /root/.pdf/')
-pdfopencommand = read_pipe ('/usr/bin/regtool get /root/%s/shell/open/command/' % escape_shell (pdfname))
-
-# hmm
-native_view = re.sub ('"([^"]*).*"', '\\1', pdfopencommand)
-if not native_view:
-       native_view = 'acrobat'
-       
-if native_view:
-       pdfview = read_pipe ('/usr/bin/cygpath -au %s' % escape_shell (native_view))
-if not pdfview:
-       # message box?
-       sys.stderr.write ('no pdf viewer found\n')
-       pdfview = 'xpdf'
-
-os.chdir (dir)
-pdffile = '%(stem)s.pdf' % vars ()
-if os.path.exists (pdffile):
-       os.unlink (pdffile)
-
-
-script = '/usr/bin/lilypond'
-
-if os.path.exists ('/usr/bin/ly2dvi'):
-       script = '/usr/bin/ly2dvi'
-
-stat = system ('%s %s > %s.lylog 2>&1' % (script, escape_shell (base),
-                                   escape_shell (stem)))
-
-if not os.path.exists (pdffile):
-       # message box?
-       sys.stderr.write ('PDF output not found. Error log: \n')
-
-       map (sys.stderr.write, open (stem + '.lylog').readlines ()[-20:])
-       sys.stderr.write ('A full log is in the file %s.lylog\n' % stem)
-       sys.stderr.write ('\n\nPress enter to close window\n')
-       sys.stdin.readline ()
-else:
-       
-       # run even if failed, to make sure that error is visible.
-       system ('%s %s.pdf' % (escape_shell (pdfview), escape_shell (native_base)))
diff --git a/cygwin/lilypond-doc.hint b/cygwin/lilypond-doc.hint
deleted file mode 100644 (file)
index beac063..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-sdesc: "LilyPond documentation."
-category: Doc
-ldesc: "LilyPond Documentation in INFO, HTML, PS, PDF and DVI formats.
-This package contains the HTML, INFO, PostScript PDF and DVI
-documentation for the LilyPond music typesetting software.  Man pages
-are in the lilypond package."
diff --git a/cygwin/lilypond.hint b/cygwin/lilypond.hint
deleted file mode 100644 (file)
index c0728e0..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-sdesc: "A program for printing sheet music"
-category: Publishing
-requires: bash coreutils cygwin findutils ghostscript glib2-runtime libfontconfig1 libfreetype26 libguile12 libiconv2 libintl3 pango-runtime python _update-info-dir
-#suggests: emacs gsview libkpathsea4 lilypond-doc tetex-bin tetex-tiny rxvt xorg-x11-base
-ldesc: "A program for printing sheet music.
-LilyPond lets you create music notation.  It produces
-beautiful sheet music from a high-level description file."
diff --git a/cygwin/mknetrel b/cygwin/mknetrel
deleted file mode 100644 (file)
index 390a1db..0000000
+++ /dev/null
@@ -1,242 +0,0 @@
-# -*- shell-script -*-
-
-sub_packages="doc"
-
-[ "$cygwin" == "mingw" ] && sub_packages="doc extra"
-
-depends="libfontconfig1 libfreetype6 libguile16 libintl3 libpango1"
-build_depends="mingw-devel gettext-devel guile-devel pango-devel"
-
-v=$(expr "$ver" : "\(.*\)-[0-9]*")
-
-save_PATH="$PATH"
-
-# copy and include extra mknetrel stuff
-. $src/$cygwin/mknetrel.extras || . $mknetrel/extras
-
-doc () {
-    # doc works, but take too long to build each time
-    [ "$cygwin" == "mingw" ] && return 1
-    return 0
-}
-
-preconfig () {
-    extras_preconfig
-
-    [ "$cygwin" == "mingw" ] && if grep 'PYTHON_DEVEL(REQUIRED)' $src/configure.in; then
-       sed -i~ -e 's/PYTHON_DEVEL(REQUIRED)/PYTHON_DEVEL(OPTIONAL)/' \
-           $src/configure.in
-    fi
-    [ "$cygwin" == "mingw" ] && cd $src && ./autogen.sh --noconfigure
-    
-    cd $build || exit 1
-    # cross-compiling: configure for build-host
-    if ! iscygwin; then
-       rm -f config.cache
-       export HOST_CC=${HOST_CC:-gcc}
-       export HOST_CXX=${HOST_CXX:-g++}
-       export HOST_PKG_CONFIG=${HOST_PKG_CONFIG:-pkg-config}
-       export HOST_PKG_CONFIG_PATH=${HOST_PKG_CONFIG_PATH:-}
-       export HOST_FREETYPE_CONFIG=${HOST_FREETYPE_CONFIG:-freetype-config}
-       (PATH="$build:$save_PATH" \
-           CFLAGS="-O2 -g" \
-           CPPFLAGS="" \
-           CC=$HOST_CC \
-           CXX=$HOST_CXX \
-           LDFLAGS="" \
-           PKG_CONFIG=$HOST_PKG_CONFIG \
-           PKG_CONFIG_PATH=$HOST_PKG_CONFIG_PATH \
-           FREETYPE_CONFIG=$HOST_FREETYPE_CONFIG \
-           $src/configure --prefix=$prefix --enable-config=for-build)
-    fi
-
-    GUILE=$(GUILE_LOAD_PATH=$cygwin_prefix/share/guile/* $cygwin_prefix/bin/guile-config --version 2>&1 | awk '{print $NF}')
-    cat > $target-guile-config <<EOF
-[ "\$1" == "--version" ] && echo "$target-guile-config - Guile version $GUILE"
-[ "\$1" == "compile" ] && echo "-I$cygwin_prefix/include"
-[ "\$1" == "link" ] && echo "-L$cygwin_prefix/lib -lguile -lgmp"
-exit 0
-EOF
-    chmod 755 $target-guile-config
-    export PATH=.:$PATH
-    build_cxx="$build_cxx -I$(pwd)"
-    if [ "$cygwin" == "mingw" ]; then
-       CONFIGOPTS="--without-kpathsea $CONFIGOPTS"
-       #CPPFLAGS="-DARGV0_RELOCATION=1 $CPPFLAGS"
-       CONFIGOPTS="--enable-relocation $CONFIGOPTS"
-       # There's a problem with inlining the string utils.
-       # The -O2 flag is still passed by default through opt.
-       CONFIGOPTS="--disable-optimising $CONFIGOPTS"
-        ## debugging
-       ##opt='-g'
-    fi
-    
-    if [ "$cygwin" == "mingw" ]; then
-       cp /usr/include/FlexLexer.h .
-       mkdir python2.3
-       cp /usr/include/python2.3/Python.h python2.3
-
-       CXX="$(echo $build_cxx | sed 's/ -mwindows//')" \
-           CXX_FOR_TARGET="${build_cxx}" \
-           CC="${build_cc}" \
-           CC_FOR_TARGET="${build_cc}" \
-           GCC_FOR_TARGET="${build_cc}" \
-           RANLIB="${build_ranlib}" \
-           RANLIB_FOR_TARGET="${build_ranlib}" \
-           DLLWRAP="${build_dllwrap}" \
-           AR="${build_ar}" NM="${build_nm}" \
-           LD=$(${build_cc} -print-prog-name=ld) \
-           $src/configure --enable-config=console $CONFIGOPTS
-
-       rm -f config.cache
-        iscygwin || crosscache
-    fi
-
-    :
-}
-
-prebuild () {
-    extras_prebuild
-
-    # shortcircuit python for mingw
-    if [ "$cygwin" == "mingw" ]; then
-       #sed -e s/-mwindows// < config.make > config-console.make
-       #cp config.hh config-console.hh
-
-       mkdir -p python/out python/out-console
-       touch python/out/midi.lo python/out/midi.so python/out/midi.dll
-       touch python/out-console/midi.lo python/out-console/midi.so python/out-console/midi.dll
-    fi
-
-    # cross-compiling: build for build-host, generate doc
-    if ! iscygwin; then
-       cd $build || exit 1
-
-       if doc; then
-           args="all doc web"
-       else
-           args="all"
-       fi
-       (PATH="$build:$save_PATH" \
-           CFLAGS="-O2 -g" \
-           CPPFLAGS="" \
-           CC=$HOST_CC \
-           CXX=$HOST_CXX \
-           LDFLAGS="" \
-           eval make conf=for-build $args) || exit 1
-
-       # fake mf and texi
-        mkdir -p mf/out
-       cp -pv mf/out-for-build/* mf/out
-       mkdir -p Documentation/user/out
-       cp -pv Documentation/user/out-for-build/*{tely,texi} Documentation/user/out
-    fi
-
-    if [ "$cygwin" == "mingw" ]; then
-       # fake mf and texi
-        mkdir -p mf/out-console
-       cp -pv mf/out-for-build/* mf/out-console
-       mkdir -p Documentation/user/out-console
-       cp -pv Documentation/user/out-for-build/*{tely,texi} Documentation/user/out-console
-       # fake manual pages, only works without --enable-config
-       mkdir -p scripts/out-console
-       cp scripts/out-for-build/*.1 scripts/out-console
-       mkdir -p lily/out-console
-       cp lily/out-for-build/*.1 lily/out-console
-       make conf=console || exit 1
-    fi
-
-    addmakeflags "target=$target" ' '
-    if [ -f "$cygwin_prefix/bin/libpython2.4.dll" ]; then
-       addmakeflags LDFLAGS="$cygwin_prefix/bin/libpython2.4.dll" ' '
-    fi
-
-    if iscygwin && doc; then
-       addmakeflags all ' ' doc ' ' web ' '
-    fi
-}
-
-preinstall () {
-    extras_preinstall
-    if iscygwin && doc; then
-       addmakeflags webdir="$inst-doc/$packagedocdir" ' ' web-install
-    fi
-}
-
-postinstall () {
-    if [ "$cygwin" == "mingw" ]; then
-       cp $inst/usr/share/lilypond/$v/python/* $inst/usr/bin
-       install -m755 $build/lily/out/lilypond $inst/usr/bin/lilypond-windows
-       install -m755 $build/lily/out-console/lilypond $inst/usr/bin/
-    fi
-    
-    extras_postinstall
-
-    if [ "$cygwin" == "mingw" ]; then
-       for i in $inst/usr/bin/*; do
-           m=$(file -b $i)
-           if echo "$m" | grep "guile"; then
-               mv $i $i.scm
-           elif echo "$m" | grep "python"; then
-               mv $i $i.py
-           fi
-       done
-    fi
-
-    cd $build || exit 1
-    if ! iscygwin && doc; then
-       make conf=for-build webdir=$inst-doc/$packagedocdir web-install
-    fi
-
-    # txt files reside elsewhere
-    cd $build/Documentation/topdocs/out
-    install -m644 AUTHORS.txt INSTALL.txt NEWS.txt README.txt $inst/$packagedocdir
-    ## copy examples
-    cd $src || exit 1
-    cp -prv input $inst/$packagedocdir
-    rm -rf $(find $inst/$packagedocdir -name 'CVS')
-    rm -f $(find $inst/$packagedocdir -name 'SCons*')
-    rm -f $(find $inst/$packagedocdir -name 'GNUmakefile*')
-
-    rm -rf $(find $inst/usr/share/lilypond -name '*.pyc')
-    rm -f $inst/usr/share/lilypond/$v/tex/texinfo.tex
-
-    if [ "$cygwin" == "mingw" ]; then
-       find $inst -name '*ly' | xargs unix2dos
-    fi
-
-    install -d -m755 $inst-doc/$infodir/lilypond
-    if doc; then
-       cd $inst-doc/$infodir/lilypond && ln -sf ../../doc/$base-$ver/Documentation/user/out-www/*png .
-    fi
-}
-
-doc_split () {
-    extras_doc_split
-    mkdir -p ./$packagedocdir/input
-    mv $inst/$packagedocdir/input/{no-notation,regression,test,tutorial} ./$packagedocdir/input
-    mkdir -p ./$prefix/share/lilypond/$v/fonts
-    mv $inst/$prefix/share/lilypond/$v/fonts/source ./$prefix/share/lilypond/$v/fonts
-}
-
-extra_name () {
-    echo lilypond-extra
-}
-
-extra_split () {
-    # should be in devel...
-    mkdir -p ./$prefix/share/lilypond/$v
-    for i in make python tex vim; do
-    #for i in make tex vim; do
-       mv $inst/$prefix/share/lilypond/$v/$i ./$prefix/share/lilypond/$v
-    done
-    mkdir -p ./$prefix/share/lilypond/$v/fonts
-    for i in source svg tfm; do
-       mv $inst/$prefix/share/lilypond/$v/fonts/$i ./$prefix/share/lilypond/$v/fonts
-    done
-
-    mkdir -p ./$prefix/share
-    for i in locale omf; do
-       mv $inst/$prefix/share/$i ./$prefix/share
-    done
-}
diff --git a/cygwin/mknetrel.auto b/cygwin/mknetrel.auto
deleted file mode 100644 (file)
index 382040c..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-# -*- shell-script -*-
-
-#
-# mknetrel.split -- autotools
-#
-
-autoupdate () {
-    if [ "$base" != "libtool" ]; then
-       if [ -d libltdl ]; then
-           rm -rf libltdl
-           libtoolize --force --copy --automake --ltdl
-       else
-           libtoolize --force --copy --automake
-       fi
-    fi
-
-    chmod +x ./bootstrap ./autogen.sh || :
-    if [ -x ./bootstrap ]; then
-       ./bootstrap --noconfigure
-    elif [ -x ./autogen.sh ]; then
-       ./autogen.sh --noconfigure
-    else
-       aclocal
-       autoheader
-       autoconf
-       automake --add-missing
-    fi
-    sed -i~ -e 's/ x$PKG_CONFIG / "$x$PKG_CONFIG" /' $src/configure
-}
diff --git a/cygwin/mknetrel.cross b/cygwin/mknetrel.cross
deleted file mode 100644 (file)
index 65e5489..0000000
+++ /dev/null
@@ -1,104 +0,0 @@
-# -*- shell-script -*-
-
-#
-# mknetrel.cross -- set cross.cache for configure
-#
-
-# for cross-compiling
-if ! iscygwin; then
-    uploads=$here/uploads/$base && mkdir -p $uploads/
-    tarstem=$uploads/$package
-fi
-
-crosscache () {
-       cat <<EOF > config.cache
-ac_cv_c_bigendian=\${ac_cv_c_bigendian=no}
-ac_cv_c_long_size_t=\${ac_cv_c_long_size_t=no}
-ac_cv_c_long_time_t=\${ac_cv_c_long_time_t=yes}
-ac_cv_sizeof___int64=\${ac_cv_sizeof___int64=0}
-ac_cv_sizeof_char=\${ac_cv_sizeof_char=1}
-ac_cv_sizeof_char_p=\${ac_cv_sizeof_char_p=4}
-ac_cv_sizeof_double=\${ac_cv_sizeof_double=8}
-ac_cv_sizeof_float=\${ac_cv_sizeof_float=4}
-ac_cv_sizeof_int=\${ac_cv_sizeof_int=4}
-ac_cv_sizeof_intmax_t=\${ac_cv_sizeof_intmax_t=8}
-ac_cv_sizeof_intptr_t=\${ac_cv_sizeof_intptr_t=4}
-ac_cv_sizeof_long=\${ac_cv_sizeof_long=4}
-ac_cv_sizeof_long_double=\${ac_cv_sizeof_long_double=12}
-ac_cv_sizeof_long_long=\${ac_cv_sizeof_long_long=8}
-ac_cv_sizeof_ptrdiff_t=\${ac_cv_sizeof_ptrdiff_t=4}
-ac_cv_sizeof_short=\${ac_cv_sizeof_short=2}
-ac_cv_sizeof_size_t=\${ac_cv_sizeof_size_t=4}
-ac_cv_sizeof_uintptr_t=\${ac_cv_sizeof_uintptr_t=4}
-ac_cv_sizeof_unsigned___int64=\${ac_cv_sizeof_unsigned___int64=0}
-ac_cv_sizeof_unsigned_char=\${ac_cv_sizeof_unsigned_char=1}
-ac_cv_sizeof_unsigned_int=\${ac_cv_sizeof_unsigned_int=4}
-ac_cv_sizeof_unsigned_long=\${ac_cv_sizeof_unsigned_long=4}
-ac_cv_sizeof_unsigned_long_long=\${ac_cv_sizeof_unsigned_long_long=8}
-ac_cv_sizeof_unsigned_short=\${ac_cv_sizeof_unsigned_short=2}
-ac_cv_sizeof_void_p=\${ac_cv_sizeof_void_p=4}
-ac_16bit_type=\${ac_16bit_type=short}
-ac_32bit_type=\${ac_32bit_type=int}
-ac_64bit_type=\${ac_64bit_type=none}
-ac_cv_sys_restartable_syscalls=\${ac_cv_sys_restartable_syscalls=yes}
-ac_cv_sprintf_count=\${ac_cv_sprintf_count=yes}
-ac_cv_spinlocks=\${ac_cv_spinlocks=no}
-ac_cv_func_getpgrp_void=\${ac_cv_func_getpgrp_void=yes}
-ac_cv_func_setvbuf_reversed=\${ac_cv_func_setvbuf_reversed=no}
-ac_cv_func_mkfifo=yes
-# but in mingw only if winsock2.h
-ac_cv_func_select=\${ac_cv_func_select=yes}
-ac_cv_search_dlopen=\${ac_cv_search_dlopen="none required"}
-ac_exeext=\${ac_exeext=}
-ac_cv_exeext=\${ac_cv_exeext=}
-
-# libtool searches not only in the cross libpath
-#     /cygwin/usr/lib:/cygwin/usr/lib/w32api:/usr/i686-cygwin/lib
-# but also in /usr/lib.  there it finds libdl.a and adds -ldl
-# to LIBS
-# it seems that libtool is broken wrt cross compilation:
-#    sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
-lt_cv_dlopen=\${lt_cv_dlopen="dlopen"}
-lt_cv_dlopen_libs=\${lt_cv_dlopen_libs="none required"}
-## trying to get .la's in /usr/lib, will this work? -- jcn
-##libltdl_cv_sys_search_path=\${libltdl_cv_sys_search_path="'"/lib /usr/lib"'"}
-##libltdl_cv_sys_search_path=\${libltdl_cv_sys_search_path="'"$cygwin_prefix/lib"'"}
-libltdl_cv_sys_search_path=\${libltdl_cv_sys_search_path="'"$cygwin_prefix/lib"'"}
-lt_cv_sys_max_cmd_len=\${lt_cv_sys_max_cmd_len=8192}
-##ac_cv_header_strings_h=\${ac_cv_header_strings_h=yes}
-ac_cv_lib_dld_shl_load=\${ac_cv_lib_dld_shl_load=no}
-ac_cv_lib_dl_dlopen=\${ac_cv_lib_dl_dlopen=no}
-ac_cv_c_stack_direction=\${ac_cv_c_stack_direction=-1}
-EOF
-}
-
-needdevoflags () {
-    return 1
-}
-
-extras_preconfig () {
-    cd $src || exit 1
-    patchsrc
-    if [ ! -x ./configure ]; then
-       autoupdate
-    fi
-    for i in $(find $src -name configure | xargs grep -l PKG_CONFIG); do
-       sed -i~ -e 's/ x$PKG_CONFIG / "$x$PKG_CONFIG" /' $i
-    done
-    cd $build || exit 1
-    CONFIGOPTS="--config-cache --enable-shared --disable-static $CONFIGOPTS"
-    ##[ "$cygwin" == "mingw" ] && CONFIGOPTS="'LDFLAGS=-mwindows -mms-bitfields' $CONFIGOPTS"
-    iscygwin || crosscache
-}
-
-preconfig () {
-    extras_preconfig
-}
-
-extras_postconfig () {
-    fix_libtool_script
-}
-
-postconfig () {
-    extras_postconfig
-}
diff --git a/cygwin/mknetrel.doc b/cygwin/mknetrel.doc
deleted file mode 100644 (file)
index 48f8a50..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-# -*- shell-script -*-
-
-#
-# mknetrel.doc -- fixup doc
-#
-
-docprefix=$prefix/share
-docdir=$docprefix/doc
-
-cygdocdir=$docdir/$Cygwin
-infodir=$docprefix/info
-mandir=$docprefix/man
-packagedocdir=$docdir/$base
-
-fixdoc () {
-    #
-    cd $inst || exit 1
-    mkdir -p $inst/$docprefix
-    for i in info man doc; do
-       #if [ -d $inst/$docprefix/$i ]; then
-       if [ -d $inst/$prefix/$i ]; then
-           cd $inst/$prefix
-           tar -cf - $i | tar -C $inst/$docprefix -xf -
-           rm -rf $inst/$prefix/$i
-       fi
-    done
-    if [ -f $inst/$docprefix/$base ]; then
-       mkdir -p $packagedocdir
-       tar -C $inst/$docprefix/$base -cf - . | tar -C $inst/$packagedocdir -xf -
-    fi
-    for i in $inst/$docprefix/info/*.info \
-       $inst/$docprefix/info/*.info-[0-9] \
-       $inst/$docprefix/info/*.info-[0-9][0-9]; do
-       gzip $i
-    done
-    true
-}
diff --git a/cygwin/mknetrel.extras b/cygwin/mknetrel.extras
deleted file mode 100644 (file)
index c893672..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-# -*- shell-script -*-
-
-# copy and include extra mknetrel stuff
-extras=${extras-"auto cross doc libtool patch split"}
-[ ! -d $src/$cygwin ] && mkdir -p $src/$cygwin
-i=extras
-cp -pv $mknetrel/$i $src/$cygwin/mknetrel.$i
-for i in $extras; do
-    [ -r $mknetrel/$i ] && cp -pv $mknetrel/$i $src/$cygwin/mknetrel.$i
-    . $src/$cygwin/mknetrel.$i
-done
-cp -pv $extra/$base $src/$cygwin/mknetrel
diff --git a/cygwin/mknetrel.libtool b/cygwin/mknetrel.libtool
deleted file mode 100644 (file)
index 4745d65..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-# -*- shell-script -*-
-# mknetrel.libtool -- libtool fixups
-
-fix_libtool_dltool () {
-    sed -i~ \
-       -e "s/^DLLTOOL=.*/DLLTOOL='$target-dlltool'/" \
-        -e "s/^DLLTOOL=/HOST_CC=gcc\nDLLTOOL=/" \
-        -e "s/^HOST_CC=/SED=sed\nHOST_CC=/" \
-        -e "s/^allow_undefined_flag=.*/allow_undefined_flag=/" \
-       $1
-##     -e "s@^sys_lib_dlsearch_path_spec=.*@sys_lib_dlsearch_path_spec='$cygwin_prefix/lib'@"
-}
-
-fix_libtool_dlopen_undefined () {
-    for i in $(find $build -name libtool); do
-       sed -i~ -e 's/\(allow_undefined_flag=.*\)unsupported/\1/' $i
-    done
-}
-    
-fix_libtool_script () {
-    [ $base != "libtool" ] || return 0
-    for i in $mknetrel_root/bin/$target-libtool \
-       $cygwin_prefix/bin/$target-libtool; do
-       [ -x "$i" ] && fixtool=$i
-    done
-    for i in $(find $build -name libtool); do
-       [ -n "$fixtool" ] || exit 1
-       cp --backup $fixtool $i
-    done
-}
-
-fix_libtool_la () {
-    # fix libtool's .la dependency_libs output for dlopen
-    for i in $inst/lib $inst/$prefix/lib; do
-       if [ -d "$i" ]; then
-           cd $i || exit 1
-           for j in $(ls -1 *.la); do
-               sed -i~ \
-                   -e 's/ *-L *[^"'"'"' ][^"'"'"' ]*//g'\
-                   -e "s@\( \|=\|'\)\(/[^ ]*usr/lib/lib\)\([^ ']*\)\.\(a\|la\|so\)[^ ']*@\1-l\3@g"\
-                   $j
-##                 -e "s@\( \|=\|'\)\(cyg\)\([^ ']*\)\(\.dll.a\|.a\)[^ ']*@\1lib\3\4@g"\
-##                 -e "s@\( \|=\|'\)\(/usr/lib/lib\)\([^ ']*\)\.\(a\|la\|so\)[^ ']*@\1-l\3@g"\
-##                 -e "s@\( \|=\|'\)\(/usr/lib/lib\)\([^.]*\)\.\(a\|la\|so\)[^ ']*@\1-l\3@g"\
-##                 -e "s@\( \|=\|'\)\(/usr/lib/lib\)\([^.]*\)[^ ']*@\1-l\3@g"\
-##                 -e "s@\( \|=\|'\)\(/usr/lib/\)\(lib\)@\1\3@g"\
-##                 -e "s@\( \|=\)\(/usr/lib/lib\)@\1$cygwin_root\2@g"\
-##                 -e "s@\( \|=\)\(/usr/lib/lib\)@\1$cygwin_root\2@g"\
-##                 -e "s@\( \|=\)\(/usr/lib/lib\)\([^ ]*\)[.]\(a\|dll\|la\|so[^ ]*\)@-l\2@g"\
-           done
-       fi
-    done
-
-    # fix some libtool's .dll name
-    mv $inst/$prefix/lib/$dll_prefix$base-$sover $inst/$prefix/bin/$dll_prefix$base-$sover.dll
-
-    # more libtool fixups.  I love libtool.
-    sed -i~ \
-       -e "s@^dlname=.*@dlname='../bin/$dll_prefix$base-$sover.dll'@" \
-       -e "s@^library_names=.*@library_names='lib$base.dll.a'@" \
-       -e "s@^old_library=.*@old_library='lib$base.a'@" \
-       $inst/$prefix/lib/lib$base.la
-##     -e "s@^library_names=.*@library_names='$dll_prefix$base.dll.a'@" \
-##     -e "s@^old_library=.*@old_library='$dll_prefix$base.a'@" \
-}
diff --git a/cygwin/mknetrel.patch b/cygwin/mknetrel.patch
deleted file mode 100644 (file)
index ffa827d..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-# -*- shell-script -*-
-
-#
-# mknetrel.patch -- patch sources
-#
-
-dopatch () {
-    cd $src
-    patch -Np1 < $patch/$package.patch
-    cp -p $patch/$package.patch $src/$cygwin/
-}
-
-dodiff () {
-    [ -r $cygwin/.cvsignore ] || cat > $cygwin/.cvsignore <<EOF
-#*
-*.orig
-*.rej
-*~
-.#*
-.bash_mknetrel
-*.patch
-CYGWIN-PATCHES
-MINGW-PATCHES
-Makefile
-GNUmakefile
-Makefile.in
-aclocal.m4
-autom4te.cache
-config.guess
-config.sub
-configure
-libltdl
-ltmain.sh
-CVS
-*[0-9].patch
-EOF
-    diff -purNX$cygwin/.cvsignore $netrel_root/src/$upstream . > $patch/$package.patch-
-    if [ -s $patch/$package.patch- ]; then
-       cp --backup -pv $patch/$package.patch- $patch/$package.patch
-       cp --backup -pv $patch/$package.patch- $src/$cygwin/$package.patch
-    fi
-    rm $patch/$package.patch-
-}
-    
-patchsrc () {
-    [ -r $patch/$package.patch -a ! -r $src/$cygwin/$package.patch ] && dopatch
-    cd $src
-    upstream=$(expr "$package" : '\(.*-[-.0-9]*.*\)-[0-9]*')
-    [ -r $netrel_root/src/$upstream -a -r $patch/$package.patch -a $src/$cygwin/mknetrel -nt $patch/$package.patch ] && dodiff
-}
diff --git a/cygwin/mknetrel.split b/cygwin/mknetrel.split
deleted file mode 100644 (file)
index 8f67fc0..0000000
+++ /dev/null
@@ -1,275 +0,0 @@
-# -*- shell-script -*-
-# mknetrel.split -- split subpackages
-
-extras_preinstall () {
-    :;
-}
-
-extras_presplit () {
-    :;
-}
-
-presplit () {
-    :;
-}
-
-devel_name () {
-    if ! libdev 2> /dev/null ; then
-       echo $base-devel
-    else
-       if expr "$base" : "\(lib\)" > /dev/null 2>&1; then
-           echo $base-dev
-       else
-           echo lib$base-dev
-       fi
-    fi
-}
-
-doc_name () {
-    echo $base-doc
-}
-
-lib_name () {
-    if expr "$base" : "\(lib\)" > /dev/null 2>&1; then
-       echo $base$sover
-    else
-       echo lib$base$sover
-    fi
-}
-
-extras_lib_split () {
-    mkdir -p ./$prefix/bin || exit 1
-    mv $inst/$prefix/bin/*.dll ./$prefix/bin
-    # better move dlls to bin, see gmp
-    mkdir -p ./$prefix/lib || exit 1
-    mv $inst/$prefix/lib/*.dll ./$prefix/lib
-    mkdir -p ./$prefix/lib || exit 1
-    mv $inst/$prefix/lib/lib*.la ./$prefix/lib
-    mkdir -p ./$prefix/share || exit 1
-    mv $inst/$prefix/share/$base ./$prefix/share
-    rmdir $inst/$prefix/bin || true
-    rmdir $inst/$prefix/lib || true
-    rmdir $inst/$prefix/share || true
-    true
-}
-   
-extras_devel_split () {
-    mkdir -p ./$prefix/bin || exit 1
-    mv $inst/bin/*-config ./$prefix/bin
-    tar -C $inst -cf - ./$prefix/include | tar -xf -
-    rm -rf $inst/$prefix/include
-    # Only static .a libs in devel, load time .la files go in LIB or
-    # BIN package.
-    mkdir -p ./$prefix/lib || exit 1
-    mv $inst/$prefix/lib/*.a ./$prefix/lib
-    mv $inst/$prefix/lib/pkgconfig ./$prefix/lib
-    mkdir -p ./$prefix/share || exit 1
-    tar -C $inst -cf - ./$prefix/share/aclocal | tar -xf -
-    rm -rf $inst/$prefix/share/aclocal
-    tar -C $inst -cf - ./$prefix/share/libtool | tar -xf -
-    rm -rf $inst/$prefix/share/libtool
-    rmdir $inst/$prefix/lib || true
-    rmdir $inst/$prefix/share || true
-    true
-}
-
-extras_doc_split () {
-    mkdir -p ./$docprefix || exit 1
-    mkdir -p ./$infodir || exit 1
-    tar -C $inst -cf - ./$infodir | tar -xf -
-    rm -rf $inst/$infodir
-    if [ "$cygwin" == "mingw" ]; then
-       mkdir -p ./$mandir || exit 1
-       tar -C $inst -cf - ./$mandir | tar -xf -
-       rm -rf $inst/$mandir
-    fi
-    true
-}
-
-extras_prebuild () {
-    for i in $sub_packages; do
-       rm -rf $inst-$i
-       mkdir -p $inst-$i || exit 1
-    done
-}
-
-extras_postinstall () {
-    fixdoc
-    fix_libtool_la
-    
-    mkdir -p $inst-doc/$docprefix
-    cd $build || exit 1
-
-    cd $src || exit 1
-    install -d -m755 $inst/$packagedocdir
-
-    readmes="$(find . -maxdepth 1 -type f -a -name '[A-Z]*' | egrep -v 'Makefile|GNUmakefile')"
-    install -m644 $readmes $inst/$packagedocdir
-    install -m644 $cygwin/changelog $inst/$packagedocdir/changelog.$Cygwin
-
-    ## Cygwin readmes
-    cd $src || exit 1
-    install -d -m755 $inst/$cygdocdir
-
-    cd $src || exit 1
-    install -m644 $cygwin/README $inst/$packagedocdir/README.$Cygwin
-    install -m644 $cygwin/README $inst/$cygdocdir/$package.README
-    cd $build || exit 1
-    install -m644 $cygwin/out/README $inst/$packagedocdir/README.$Cygwin
-    install -m644 $cygwin/out/README $inst/$cygdocdir/$package.README
-}
-
-auto_requires () {
-    dlls=
-    requires=
-    dlls=$(find . -name '*dll' -o -name '*.exe' \
-       | xargs $cygcheck 2>&1 | grep '^  [^ ]' \
-       | tr -d '[ \r]' | sed 's@.*\\@@g' | sort -u)
-    for x in $(ls -1 bin/* sbin/*); do
-       case $x in
-           *.exeXXX|*.dllXXX)
-               dlls="$($cygcheck $x 2>&1 | grep '^  [^ ]' | tr -d '[ \r]' | sed 's@.*bin\\@@g') $dlls"
-               ;;
-       esac
-       case "$(file -b $x)" in
-           "*Bourne shell script*")
-               requires="bash\n$requires"
-               ;;
-           "*guile*script*")
-               requires="guile\n$requires"
-               ;;
-           "*perl*script*")
-               requires="perl\n$requires"
-               ;;
-           "*python*script*")
-               requires="python\n$requires"
-               ;;
-       esac
-    done
-    for x in $dlls; do
-       requires="$(cyg-apt find $x | sed 's/:.*//')\n$requires"
-    done
-    requires=$(echo -e "$requires" | sort -u)
-    echo $requires
-}
-
-hint () {
-    if [ -r $shint ]; then
-       cp $shint $hint
-    else
-       cat > $hint <<EOF
-sdesc: "$name"
-ldesc: "$name - no description (missing $package/$cygwin/$(basename $shint) file)"
-EOF
-    fi
-    grep ^requires: $hint || echo "requires: $depends" >> $hint
-    if [ "$cygwin" == "cygwin" ]; then
-       if grep ^build-requires: $hint; then
-           mv $hint $hint~
-           grep -v build-requires $hint~ > $hint
-       fi
-       if iscygwin; then
-           cygcheck=cygcheck.exe
-       else
-           cygcheck="wine $cygwin_prefix/bin/cygcheck.exe"
-       fi
-       echo "#auto-requires: $(cd usr; auto_requires)" >> $hint
-    else
-       grep ^build-requires: $hint || echo "build-requires: $build_depends" >> $hint
-    fi
-}
-
-domkdist () {
-    #
-    # Fix up installation slightly
-    #
-    cd $inst || exit 1
-    chmod -R u+w,og-w,a+rX .
-    cd usr 2>/dev/null && dousrstuff
-
-    # Split off any sub-packages.  The actual splitting is handled by
-    # a package's specific code in extra/.
-
-    # To package `foo' in foo, foo-doc and foo-devel, set
-    # sub_packages='doc devel'.
-
-    # Then provide functions doc_name and devel_name, that return the
-    # full name of the sub-package.  Also provide functions doc_split
-    # and devel_split, that mv part of foo's installation in $inst to
-    # the sub-packages' installation roots $inst-doc and $inst-devel.
-
-    cd $inst || exit 1
-    presplit
-
-    for i in $sub_packages; do
-       subname=$(${i}_name)
-       cd $inst-$i || exit 1
-       ${i}_split || exit 1
-    done
-    
-    cd $inst || exit 1
-    prepackage
-
-    cd $inst || exit 1
-    hard2soft
-
-    #
-    # Make tar balls
-    #
-
-    # The base package
-    echo creating $tarstem.tar.bz2
-    cd $inst || exit 1
-
-    name=$base
-    shint=$src/$cygwin/$name.hint
-    hint=$uploads/setup.hint
-    hint
-    find * -print | egrep -v '\.cvsignore|\.bak$|\.orig$|\.o$|\.rej$|~$|^.#|CVS|/tags$' | sort | tar -T - --no-recursion --owner=0 --group=0 -cjf $tarstem.tar.bz2
-
-    # Any sub-packages
-    for i in $sub_packages; do
-       subname=$(${i}_name)
-       subload=$uploads/$subname
-       subtarstem=$subload/$subname-$ver
-       shint=$src/$cygwin/$subname.hint
-       hint=$subload/setup.hint
-       depends=$(eval echo '$'${i}_depends)
-       mkdir -p $subload || exit 1
-       echo creating $subtarstem.tar.bz2
-       name=$subname
-       cd $inst-$i
-       hint
-       grep ^external-source: $hint || echo "external-source: $base" >> $hint
-       hard2soft
-       find * -print | egrep -v '\.cvsignore|\.bak$|\.orig$|\.o$|\.rej$|~$|^.#|CVS|/tags$' | sort | tar -T - --no-recursion --owner=0 --group=0 -cjf $subtarstem.tar.bz2
-    done
-
-    # The source package
-    cd $src/.. || exit 1
-    echo creating "$tarstem"-src.tar.bz2
-    ##find $package_src/* -print -follow | egrep -v '\.cvsignore|\.bak$|\.orig$|\.o$|~$|^.#|CVS|%redact|/tags$' | egrep -v "$src_exclude" | sort | tar -T - --no-recursion --owner=0 --group=0 -cjf "$tarstem"-src.tar.bz2
-    find $package_src/* -print | egrep -v '\.cvsignore|\.bak$|\.orig$|\.o$|\.rej$|~$|^.#|CVS|%redact|/tags$|/TAGS$|autom4te.cache$' | egrep -v "$src_exclude" | sort | tar -T - --no-recursion --owner=0 --group=0 -cjf "$tarstem"-src.tar.bz2
-    ##cd $package_src && tar -cj --exclude='\.cvsignore' --exclude='\.bak$' --exclude='\.orig$' --exclude='\.o$' --exclude='~$' --exclude='^.#' --exclude='CVS' --exclude='%redact' --exclude='/tags$' --exclude='/TAGS$' --exclude='autom4te.cache' --owner=0 --group=0 -f "$tarstem"-src.tar.bz2 .
-    postpackage
-}
-
-devel_split () {
-    extras_devel_split
-}
-
-doc_split () {
-    extras_doc_split
-}
-
-lib_split () {
-    extras_lib_split
-}
-
-prebuild () {
-    extras_prebuild
-}
-
-postinstall () {
-    extras_postinstall
-}
diff --git a/cygwin/postinstall-lilypond.sh b/cygwin/postinstall-lilypond.sh
deleted file mode 100644 (file)
index 257100c..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-#!@SHELL@
-# /etc/postinstall/lilypond.sh  -- Setup LilyPond
-
-# register .ly
-ROOT=$(cygpath -w /)
-[ -z "$ROOT" ] && ROOT=$(regtool get '/machine/Software/Cygnus Solutions/Cygwin/mounts v2/\\\//native')
-[ -z "$ROOT" ] && ROOT=$(cat '/proc/registry/HKEY_LOCAL_MACHINE/Software/Cygnus Solutions/Cygwin/mounts v2/\\\//native')
-[ -z "$ROOT" ] && ROOT='c:\cygwin'
-
-regtool add '/root/.ly'
-regtool set '/root/.ly/' 'LilyPond'
-regtool set '/root/.ly/Content Type' 'text/lilypond-source'
-regtool add '/root/LilyPond'
-regtool set '/root/LilyPond/' 'LilyPond source'
-regtool add '/root/LilyPond/shell'
-regtool add '/root/LilyPond/shell/open'
-regtool add '/root/LilyPond/shell/open/command'
-
-regtool set '/root/LilyPond/shell/open/command/' $ROOT'\bin\bash.exe --login -c '"'"'/usr/bin/lily-wins "%1"'"'"
-regtool add '/root/LilyPond/shell/edit'
-regtool set '/root/LilyPond/shell/edit/' '&Edit source in Notepad ...'
-regtool add '/root/LilyPond/shell/edit/command'
-regtool set '/root/LilyPond/shell/edit/command/' '%SystemRoot%\system32\notepad.exe %1'
-regtool add '/root/LilyPond/shell/generate'
-regtool set '/root/LilyPond/shell/generate/' '&Generate PDF ...'
-regtool add '/root/LilyPond/shell/generate/command'
-regtool set '/root/LilyPond/shell/generate/command/' $ROOT'\bin\bash.exe --login -c '"'"'/usr/bin/lily-wins "%1"'"'"
-
-# FIXME: move to new postinstall-lilypond-doc.sh
-[ -d /usr/share/info/lilypond ] && (cd /usr/share/info/lilypond && ln -sf ../../doc/lilypond/Documentation/user/out-www/*png .)