]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-1.5.25
authorfred <fred>
Wed, 27 Mar 2002 02:04:30 +0000 (02:04 +0000)
committerfred <fred>
Wed, 27 Mar 2002 02:04:30 +0000 (02:04 +0000)
13 files changed:
.cvsignore [new file with mode: 0644]
Documentation/windows/GNUmakefile
Documentation/windows/compiling.texi
Documentation/windows/cygwin-installer.patch
Documentation/windows/fix-suffixes.sh
Documentation/windows/gs-profile.sh [new file with mode: 0644]
Documentation/windows/gsview-profile.sh [new file with mode: 0644]
Documentation/windows/installing.texi
Documentation/windows/post-lilypond.sh [new file with mode: 0644]
Documentation/windows/setup.hint [new file with mode: 0644]
Documentation/windows/zlily-profile.sh
GNUmakefile.in
buildscripts/lilypond-profile.sh

diff --git a/.cvsignore b/.cvsignore
new file mode 100644 (file)
index 0000000..fd0c7ae
--- /dev/null
@@ -0,0 +1,22 @@
+GNUmakefile
+TAGS
+config.cache
+config.h
+config.log
+config.make
+config.status
+configure
+.dstreamrc
+.gdbinit
+*~
+#*
+*.txt
+*.html
+*.png
+out
+out-www
+afm
+share
+tfm
+tfm.[0-9]
+stepmake
index 5806e4d9227dedb17c56e058c5ab4b0f4dcbbc1a..965599a12c1a311dd73b640aeb57bcedbb08dbbb 100644 (file)
@@ -1,7 +1,7 @@
 
 depth=../..
 
-EXTRA_DIST_FILES = LilyPond.ico $(wildcard *.sh *.patch)
+EXTRA_DIST_FILES = LilyPond.ico $(wildcard *.sh *.patch) setup.hint
 
 STEPMAKE_TEMPLATES=documentation texinfo install install-out
 
@@ -18,28 +18,9 @@ ifeq ($(target),i686-pc-cygwin)
 POST_INSTALLS=$(wildcard post-*.sh)
 OUT_POST_INSTALLS=$(POST_INSTALLS:%=$(outdir)/%)
 
-# lily-*: rename to '-profile' or so
-PROFILES=$(wildcard *lily-*.sh) lilypond-profile.sh
+PROFILES=$(wildcard *-profile.sh) lilypond-profile.sh
 OUT_PROFILES=$(PROFILES:%=$(outdir)/%)
 
-##as2text.scm
-PYTHON_WRAPPERS=\
- abc2ly\
- convert-ly\
- etf2ly\
- lilypond-book\
- ly2dvi\
- mup2ly\
- musedata2ly\
- pmx2ly\
- update-lily\
-#
-
-OUT_PYTHON_WRAPPERS=$(PYTHON_WRAPPERS:%=$(outdir)/%)
-
-TEX_WRAPPERS=dvips latex mktextfm tex yap
-OUT_TEX_WRAPPERS=$(TEX_WRAPPERS:%=$(outdir)/%)
-
 # profiles
 $(outdir)/%.sh: %.sh
        cat $< | sed $(sed-atvariables) > $@
@@ -50,44 +31,9 @@ $(outdir)/lilypond-profile.sh: $(outdir)/../$(depth)/buildscripts/out/lilypond-p
        cp $< $@
        chmod 755 $@
 
-# python wrappers
-$(outdir)/%: python-wrapper.sh
-       cat $< | sed $(sed-atvariables) -e "s!@name@!$(*F)!g" > $@
-       chmod 755 $@
-
-ATVARIABLES += OPTIONS
-
-# tex wrappers
-#$(outdir)/%: %-wrapper.sh
-#      cat $< | sed $(sed-atvariables) -e "s!@name@!$(*F)!g" > $@
-#      chmod 755 $@
-
-$(outdir)/latex: tex-wrapper.sh
-       cat $< | sed $(sed-atvariables) -e "s!@name@!latex!g" > $@
-       chmod 755 $@
-
-$(outdir)/dvips: tex-wrapper.sh
-       cat $< | sed $(sed-atvariables) -e "s!@name@!dvips!g" > $@
-       chmod 755 $@
-
-MKTEXFTM_OPTIONS=--dest-dir \"$$(cygpath -w \"\"/usr/lilypond/share/lilypond/tfm\"\")\"
-$(outdir)/mktextfm: tex-wrapper.sh
-       cat $< | sed -e 's!@OPTIONS@!$(MKTEXFTM_OPTIONS)!' $(sed-atvariables) -e "s!@name@!maketfm!g" > $@
-       chmod 755 $@
-
-$(outdir)/tex: tex-wrapper.sh
-       cat $< | sed $(sed-atvariables) -e "s!@name@!tex!g" > $@
-       chmod 755 $@
-
-$(outdir)/yap: tex-wrapper.sh
-       cat $< | sed $(sed-atvariables) -e "s!@name@!yap!g" > $@
-       chmod 755 $@
-
-default: $(OUT_PYTHON_WRAPPERS) $(OUT_TEX_WRAPPERS) $(OUT_POST_INSTALLS) $(OUT_PROFILES)
-
-# urg: change suffixes before overwriting python scripts
+default: $(OUT_POST_INSTALLS) $(OUT_PROFILES)
 
-INSTALLATION_OUT_SUFFIXES=1 2 3 4
+INSTALLATION_OUT_SUFFIXES=1 2
 
 # URG.
 # By popular demand,
@@ -100,14 +46,8 @@ INSTALLATION_FILES=$(OUT_POST_INSTALLS)
 INSTALLATION_OUT_DIR1=$(shell dirname $(shell dirname $(prefix)))/etc/profile.d
 INSTALLATION_OUT_FILES1=$(OUT_PROFILES)
 
-INSTALLATION_OUT_DIR2=$(prefix)/wrappers
-INSTALLATION_OUT_FILES2=$(OUT_PYTHON_WRAPPERS) $(OUT_TEX_WRAPPERS)
-
-INSTALLATION_OUT_DIR3=$(datadir)/tex
-INSTALLATION_OUT_FILES3=$(shell kpsewhich geometry.sty)
-
-INSTALLATION_OUT_DIR4=$(datadir)/tfm
-INSTALLATION_OUT_FILES4=$(shell kpsewhich cmr10.tfm)
+INSTALLATION_OUT_DIR2=$(datadir)/tex
+INSTALLATION_OUT_FILES2=$(shell kpsewhich geometry.sty)
 
 else
 
index 0db6f124dbcae349cd8607434b83c19ee7a5b94a..9cda4bb06d2df5f2aa2196721aab3adf017248f0 100644 (file)
@@ -1,7 +1,3 @@
-@html
-<!--- @@WEB-TITLE@@=Windows Compilation --->
-@end html
-
 @section Obtaining LilyPond
 
 You can get the latest version of LilyPond at
@@ -44,32 +40,39 @@ needs a number of extra tricks.  All code for these tricks can be found
 in the source package directory @file{Documentation/windows}.
 
 @table @asis
-@item @file{guile-1.4-gnu-windows.patch}
+@item @var{guile-1.4-gnu-windows.patch}
 You may (Cygwin gets better every day) need this patch to compile GUILE.
-@item @file{cygwin-installer.patch}
+@item @var{cygwin-installer.patch}
 Apply this patch to the @file{cinstall} directory of
 @file{winsup-src/cinstall}, to get the LilyPond installer.
 
 Compiling @file{setup.exe} has been complicated a bit with the
-introduction of the bzip2 feature:
+introduction of the non-feature bzip2.  Here's how I did it:
 @quotation
 @example
-    mkdir cygwin-20010709
-    cd cygwin-20010709
-    tar xjf cygwin-src-20010709.tar.bz2 
-    cd winsup/cinstall
+    mkdir cygwin-20011202 && cd cygwin-20011202
+    export CVSROOT=:pserver:anoncvs@@anoncvs.cygnus.com:/cvs/src
+    touch $HOME/.cvspass
+    cvs login
+    cvs -z3 co -D20011202 winsup
+    cd src/winsup/cinstall
     patch < $HOME/usr/src/lilypond/Documentation/windows/cygwin-installer.patch
+    autoconf
     cd ../bz2lib
     MINGW32=yes CFLAGS='-mno-cygwin' ./configure
     make
     cd -
     MINGW32=yes CFLAGS='-mno-cygwin' ./configure
-    cp $HOME/usr/src/cygwin/cygwin-1.3.2/usr/lib/mingw/crt2.o .
-    make w32api_lib=/home/cygwin/cygwin-1.3.2/usr/lib/w32api \
-        CXX='g++ -L/home/cygwin/cygwin-1.3.2/usr/lib/mingw'
+    CYGWIN=$HOME/usr/src/cygwin/cygwin-1.3.5
+    cp $CYGWIN/usr/lib/mingw/crt2.o .
+    cp $HOME/usr/src/lilypond/Documentation/windows/LilyPond.ico .
+    make w32api_lib=$CYGWIN/usr/lib/w32api \
+        CXX="g++ -L$CYGWIN/usr/lib/mingw"
+    cp -pv setup.exe $CYGWIN/dist/cygwin-1.3.5/new-setup.exe
+    strip $CYGWIN/dist/cygwin-1.3.5/new-setup.exe
 @end example
 @end quotation
-@item @file{--prefix=/usr/lilypond-x.y.x}
+@item @var{--prefix=/usr/lilypond-x.y.x}
 The standard binary installation installs LilyPond into its own prefix.
 We think it's silly, but do this is on special request of Windows users.
 @item @file{fix-suffixes.sh}
index ffc7613c7495e2315cef7a60cfe86b5c0f189d7a..6c5276d3b933e1d2e61465ce576aca8606d6db7f 100644 (file)
@@ -1,23 +1,75 @@
-Binary files ../cinstall/LilyPond.ico and ./LilyPond.ico differ
-diff -purN ../cinstall/Makefile.in ./Makefile.in
---- ../cinstall/Makefile.in    Fri Jun  1 05:56:01 2001
-+++ ./Makefile.in      Thu Sep 13 21:38:27 2001
-@@ -135,8 +135,9 @@ clean:
+diff -purN --exclude=*~ --exclude=configure ../cinstall.orig/ChangeLog ./ChangeLog
+--- ../cinstall.orig/ChangeLog Sat Dec  1 00:36:20 2001
++++ ./ChangeLog        Sun Dec  2 17:21:40 2001
+@@ -1,3 +1,22 @@
++2001-12-02  Jan Nieuwenhuizen  <janneke@gnu.org>
++
++      * configure.in (CXXFLAGS): bugfix.
++
++      * mklink2.c: Compile fix.
++
++      * Forward ported patch to cvs -D20011202.
++      
++      * Makefile.in: Fixed realclean target.
++
++      * desktop.cc: Removed spurious line breaks from etc_profile.
++      (make_lily_bat): New function.
++      (save_icon): Parametrized.
++      (do_desktop_setup): LilyPond support; disabled Cygwin support.
++
++      * res.rc: Adapted for LilyPond.
++
++      * ini.cc (fprintf): Cygwin -> GNU LilyPond
++
+ 2001-12-01  Robert Collins  <rbtcollins@hotmail.com>
+       * package_source.cc (packagesource::set_canonical): Filename was out by one.
+@@ -2336,4 +2355,4 @@ Sat Apr  1 20:48:09 2000  Christopher Fa
+       * zlib/Makefile.in: Regenerate from Makefile.am
+ %%% $Id: cygwin-installer.patch,v 1.6 2001/12/05 13:53:28 fred Exp $
+-$Revision: 1.6 $
++$Revision: 1.6 $
+Binary files ../cinstall.orig/LilyPond.ico and ./LilyPond.ico differ
+diff -purN --exclude=*~ --exclude=configure ../cinstall.orig/Makefile.in ./Makefile.in
+--- ../cinstall.orig/Makefile.in       Fri Nov 30 13:25:00 2001
++++ ./Makefile.in      Sun Dec  2 17:38:37 2001
+@@ -35,7 +35,7 @@ CC           := @CC@
+ CC_FOR_TARGET := $(CC)
+ CXX           := @CXX@
+-CFLAGS                := @CFLAGS@ -Werror -Winline -Wall -Wpointer-arith -Wcast-align\
++CFLAGS                := @CFLAGS@ -Winline -Wall -Wpointer-arith -Wcast-align\
+       -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
+       -Wmissing-declarations -Wcomments
+ CXXFLAGS      := @CXXFLAGS@ $(CFLAGS) -fno-exceptions -fno-rtti
+@@ -167,7 +167,9 @@ clean:
        $(MAKE) -C zlib clean
  
  realclean: clean
 -      rm -f  Makefile config.cache
--
-+      rm -f Makefile *.d
-+      rm -f config.cache config.log config.status 
-+ 
++      rm -f Makefile *.d version.c
++      rm -f config.cache config.log config.status
++      $(MAKE) -C zlib realclean
  install: all
        $(SHELL) $(updir1)/mkinstalldirs $(bindir) $(etcdir)
-       for i in $(PROGS) ; do \
-diff -purN ../cinstall/desktop.cc ./desktop.cc
---- ../cinstall/desktop.cc     Tue Aug 14 05:55:37 2001
-+++ ./desktop.cc       Thu Sep 13 21:37:38 2001
-@@ -76,9 +76,7 @@ static char *etc_profile[] = {
+diff -purN --exclude=*~ --exclude=configure ../cinstall.orig/configure.in ./configure.in
+--- ../cinstall.orig/configure.in      Mon Dec 11 01:07:56 2000
++++ ./configure.in     Sun Dec  2 17:23:33 2001
+@@ -64,7 +64,7 @@ if test -z "$CXX"; then
+   test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH])
+ fi
+-CXXFLAGS='$(CFLAGS)'
++CXXFLAGS="$CFLAGS"
+ ])
+ AC_CANONICAL_SYSTEM
+diff -purN --exclude=*~ --exclude=configure ../cinstall.orig/desktop.cc ./desktop.cc
+--- ../cinstall.orig/desktop.cc        Thu Nov 29 10:52:32 2001
++++ ./desktop.cc       Sun Dec  2 17:00:31 2001
+@@ -81,9 +81,7 @@ static const char *etc_profile[] = {
    "done",
    "",
    "export MAKE_MODE=unix",
@@ -28,7 +80,7 @@ diff -purN ../cinstall/desktop.cc ./desktop.cc
    "",
    "cd \"$HOME\"",
    "",
-@@ -194,6 +192,30 @@ make_cygwin_bat ()
+@@ -204,6 +202,34 @@ make_cygwin_bat ()
  }
  
  static void
@@ -47,73 +99,100 @@ diff -purN ../cinstall/desktop.cc ./desktop.cc
 +  fprintf (bat, "@echo off\n\n");
 +
 +  fprintf (bat, "%.2s\n", get_root_dir ());
-+  fprintf (bat, "chdir %s\n\n", backslash (concat (get_root_dir ()+2, "/bin", 0)));
++  fprintf (bat, "chdir %s\n\n",
++         backslash (concat (get_root_dir () + 2, "/bin", 0)));
 +
 +  /* fprintf (bat, "bash --rcfile /bin/lilypond-profile\n"); */
 +  fprintf (bat, "bash --login -i\n");
 +
 +  fclose (bat);
++
++  if (_access ("/usr/bin/rxvt", 0) == 0)
++    batname = backslash (concat (get_root_dir (), "/usr/bin/rxvt", 0));
 +}
 +
 +static void
  make_etc_profile ()
  {
    char *fname = cygpath ("/etc/profile", 0);
-@@ -290,9 +312,9 @@ make_passwd_group ()
+@@ -301,11 +327,11 @@ out:
  }
  
  static void
 -save_icon ()
-+save_icon (char* iconfile, char* iconres)
++save_icon (char const* iconfile, char const* iconres)
  {
 -  iconname = backslash (cygpath ("/cygwin.ico", 0));
+-
+-  HRSRC rsrc = FindResource (NULL, "CYGWIN.ICON", "FILE");
 +  iconname = backslash (concat (get_root_dir (), iconfile, 0));
-   HRSRC rsrc = FindResource (NULL, "CYGWIN.ICON", "FILE");
++  
++  HRSRC rsrc = FindResource (NULL, iconres, "FILE");
    if (rsrc == NULL)
-@@ -314,7 +336,7 @@ save_icon ()
+     {
+       fatal ("FindResource failed");
+@@ -325,12 +351,13 @@ save_icon ()
  static void
- do_desktop_setup()
+ do_desktop_setup ()
  {
 -  save_icon ();
 +  save_icon ("/cygwin.ico", "CYGWIN.ICON");
  
    make_cygwin_bat ();
    make_etc_profile ();
-@@ -326,6 +348,17 @@ do_desktop_setup()
+   make_passwd_group ();
  
-   if (root_desktop) {
-     desktop_icon ("Cygwin", batname);
-+  }
-+
++#if 0  
+   if (root_menu)
+     {
+       start_menu ("Cygwin Bash Shell", batname);
+@@ -339,6 +366,20 @@ do_desktop_setup ()
+   if (root_desktop)
+     {
+       desktop_icon ("Cygwin", batname);
++    }
++#endif
++  
 +  save_icon ("/LilyPond.ico", "LILYPOND.ICON");
 +  make_lily_bat ();
-+
-+  if (root_menu) {
-+    start_menu ("GNU LilyPond Shell", batname);
-+  }
-+
-+  if (root_desktop) {
-+    desktop_icon ("GNU LilyPond", batname);
-   }
++  
++  if (root_menu)
++    {
++      start_menu ("GNU LilyPond Shell", batname);
++    }
++ 
++  if (root_desktop)
++    {
++      desktop_icon ("GNU LilyPond", batname);
+     }
  }
  
-diff -purN ../cinstall/ini.cc ./ini.cc
---- ../cinstall/ini.cc Thu Jun 14 05:55:26 2001
-+++ ./ini.cc   Thu Sep 13 21:27:48 2001
-@@ -175,7 +175,7 @@ fprintf (FILE *f, const char *fmt, ...)
+diff -purN --exclude=*~ --exclude=configure ../cinstall.orig/ini.cc ./ini.cc
+--- ../cinstall.orig/ini.cc    Thu Nov 29 10:52:32 2001
++++ ./ini.cc   Sun Dec  2 16:11:25 2001
+@@ -187,7 +187,7 @@ fprintf (FILE * f, const char *fmt, ...)
        {
          *nl = 0;
-         /*OutputDebugString (stderrbuf);*/
+         /*OutputDebugString (stderrbuf); */
 -        MessageBox (0, buf, "Cygwin Setup", 0);
-+        MessageBox (0, buf, "GNU LilyPond Cygwin Setup", 0);
++        MessageBox (0, buf, "GNU LilyPond Cygwin Setup", 0);
          stderrbuf[0] = 0;
        }
  
-diff -purN ../cinstall/msg.cc ./msg.cc
---- ../cinstall/msg.cc Sat Aug 26 05:55:14 2000
-+++ ./msg.cc   Thu Sep 13 21:27:48 2001
-@@ -44,7 +44,7 @@ mbox (char *name, int type, int id, va_l
+diff -purN --exclude=*~ --exclude=configure ../cinstall.orig/mklink2.c ./mklink2.c
+--- ../cinstall.orig/mklink2.c Tue Nov 13 02:49:32 2001
++++ ./mklink2.c        Sun Dec  2 17:09:31 2001
+@@ -1,5 +1,5 @@
+-#include <stdlib.h>
+ #include "win32.h"
++#include <stdlib.h>
+ #include "shlobj.h"
+ #include "mklink2.h"
+diff -purN --exclude=*~ --exclude=configure ../cinstall.orig/msg.cc ./msg.cc
+--- ../cinstall.orig/msg.cc    Tue Nov 13 02:49:32 2001
++++ ./msg.cc   Sun Dec  2 15:42:13 2001
+@@ -47,7 +47,7 @@ mbox (const char *name, int type, int id
  
    vsprintf (buf, fmt, args);
    log (0, "mbox %s: %s", name, buf);
@@ -122,9 +201,9 @@ diff -purN ../cinstall/msg.cc ./msg.cc
  }
  
  void
-diff -purN ../cinstall/res.rc ./res.rc
---- ../cinstall/res.rc Thu Jul  5 05:55:22 2001
-+++ ./res.rc   Thu Sep 13 21:36:25 2001
+diff -purN --exclude=*~ --exclude=configure ../cinstall.orig/res.rc ./res.rc
+--- ../cinstall.orig/res.rc    Wed Nov 14 01:11:35 2001
++++ ./res.rc   Sun Dec  2 15:50:36 2001
 @@ -30,10 +30,10 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_U
  
  IDD_SOURCE DIALOG DISCARDABLE  0, 0, 215, 95
@@ -255,7 +334,7 @@ diff -purN ../cinstall/res.rc ./res.rc
      LTEXT           "&User ID",IDC_STATIC,5,28,55,15,SS_CENTERIMAGE,
                      WS_EX_RIGHT
      EDITTEXT        IDC_NET_USER,65,28,145,12,ES_AUTOHSCROLL
-@@ -212,27 +212,25 @@ END
+@@ -212,17 +212,14 @@ END
  
  IDD_SPLASH DIALOG DISCARDABLE  0, 0, 215, 95
  STYLE DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
@@ -267,31 +346,32 @@ diff -purN ../cinstall/res.rc ./res.rc
 -    LTEXT           "Cygwin Net Release Setup Program",IDC_STATIC,55,10,114,
 -                    8
 -    LTEXT           "Version (unknown)",IDC_VERSION,55,25,120,10
--    LTEXT           "Copyright 2000, 2001 Red Hat Inc.",IDC_STATIC,55,35,
--                    120,8
+-    LTEXT           "Copyright 2000, 2001 Red Hat Inc.",IDC_STATIC,55,35,120,
+-                    8
 -    LTEXT           "http://sources.redhat.com/cygwin/",IDC_STATIC,55,50,112,
+-                    8
 +    ICON            IDI_LILYPOND,IDC_STATIC,5,5,20,20
-+    LTEXT           "GNU LilyPond GNU LilyPond Setup Program",IDC_STATIC,55,10,114,
-                     8
-+    LTEXT           "Version (1.5)",IDC_VERSION,55,25,120,10
++    LTEXT           "GNU LilyPond Setup Program",IDC_STATIC,55,10,114,8
++    LTEXT           "Version 1.4.9",IDC_VERSION,55,25,120,10
 +    LTEXT           "Copyright (C) 2000-2001 Red Hat Inc",IDC_STATIC,55,35,135,8
 +    LTEXT           "                (C) 2001 Jan Nieuwenhuizen <janneke@gnu.org>",IDC_STATIC,55,45,135,8
      DEFPUSHBUTTON   "&Next -->",IDOK,100,75,45,15
      PUSHBUTTON      "Cancel",IDCANCEL,165,75,45,15
  END
- IDD_CHOOSE DIALOG DISCARDABLE  0, 0, 430, 207
- STYLE DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
+@@ -230,10 +227,10 @@ END
+ IDD_CHOOSE DIALOG DISCARDABLE  0, 0, 429, 266
+ STYLE DS_MODALFRAME | DS_3DLOOK | DS_CENTER | WS_POPUP | WS_CAPTION | 
+     WS_SYSMENU
 -CAPTION "Cygwin Setup"
 +CAPTION "GNU LilyPond Setup"
  FONT 8, "MS Sans Serif"
  BEGIN
--    ICON            IDI_CYGWIN,IDC_STATIC,5,5,21,20
-+    ICON            IDI_LILYPOND,IDC_STATIC,5,5,21,20
-     LTEXT           "Select packages to install",IDC_CHOOSE_INST_TEXT,55,5,
+-    ICON            IDI_CYGWIN,IDC_STATIC,0,2,21,20
++    ICON            IDI_LILYPOND,IDC_STATIC,0,2,21,20
+     LTEXT           "Select packages to install",IDC_CHOOSE_INST_TEXT,125,5,
                      99,8
      CONTROL         "",IDC_LISTVIEW_POS,"Static",SS_BLACKFRAME | NOT 
-@@ -255,10 +253,10 @@ END
+@@ -256,10 +253,10 @@ END
  
  IDD_DESKTOP DIALOG DISCARDABLE  0, 0, 215, 95
  STYLE DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
@@ -304,8 +384,12 @@ diff -purN ../cinstall/res.rc ./res.rc
      CONTROL         "Create Desktop &Icon",IDC_ROOT_DESKTOP,"Button",
                      BS_AUTOCHECKBOX,55,25,100,8
      CONTROL         "Add to &Start Menu",IDC_ROOT_MENU,"Button",
-@@ -273,7 +271,7 @@ STYLE DS_MODALFRAME | DS_CENTER | WS_POP
- CAPTION "Cygwin Setup"
+@@ -271,10 +268,10 @@ END
+ IDD_FTP_AUTH DIALOGEX 0, 0, 215, 95
+ STYLE DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
+-CAPTION "Cygwin Setup"
++CAPTION "GNU LilyPond Setup"
  FONT 8, "MS Sans Serif"
  BEGIN
 -    ICON            IDI_CYGWIN,IDC_STATIC,5,5,20,20
@@ -313,7 +397,7 @@ diff -purN ../cinstall/res.rc ./res.rc
      LTEXT           "&User ID",IDC_STATIC,5,28,55,15,SS_CENTERIMAGE,
                      WS_EX_RIGHT
      EDITTEXT        IDC_NET_USER,65,28,145,12,ES_AUTOHSCROLL
-@@ -322,6 +320,7 @@ END
+@@ -322,6 +319,7 @@ END
  
  // Icon with lowest ID value placed first to ensure application icon
  // remains consistent on all systems.
@@ -321,7 +405,7 @@ diff -purN ../cinstall/res.rc ./res.rc
  IDI_CYGWIN              ICON    DISCARDABLE     "cygwin.ico"
  
  /////////////////////////////////////////////////////////////////////////////
-@@ -329,6 +328,7 @@ IDI_CYGWIN              ICON    DISCARDA
+@@ -329,6 +327,7 @@ IDI_CYGWIN              ICON    DISCARDA
  // FILE
  //
  
@@ -329,7 +413,7 @@ diff -purN ../cinstall/res.rc ./res.rc
  CYGWIN.ICON             FILE    DISCARDABLE     "cygwin.ico"
  
  /////////////////////////////////////////////////////////////////////////////
-@@ -383,7 +383,8 @@ STRINGTABLE DISCARDABLE 
+@@ -383,7 +382,8 @@ STRINGTABLE DISCARDABLE 
  BEGIN
      IDS_ROOT_SLASH          "Warning: we recommend you do NOT use the root of your hard drive as the cygwin root.  Proceed anyway?"
      IDS_ROOT_SPACE          "You should not choose a root path that include spaces in directory names.  Proceed anyway?"
@@ -339,9 +423,9 @@ diff -purN ../cinstall/res.rc ./res.rc
      IDS_DIALOG_FAILED       "Unable to create Dialog Box"
      IDS_CYGWIN_FUNC_MISSING "Error: unable to find function `%s' in %s"
      IDS_DOWNLOAD_SHORT      "Download error: %s too short (%d, wanted %d)"
-diff -purN ../cinstall/resource.h ./resource.h
---- ../cinstall/resource.h     Mon Jul  2 05:55:40 2001
-+++ ./resource.h       Thu Sep 13 21:29:51 2001
+diff -purN --exclude=*~ --exclude=configure ../cinstall.orig/resource.h ./resource.h
+--- ../cinstall.orig/resource.h        Sat Jun 30 03:37:55 2001
++++ ./resource.h       Sun Dec  2 15:45:18 2001
 @@ -47,12 +47,13 @@
  #define IDB_SPIN                        118
  #define IDB_RTARROW                     119
@@ -357,9 +441,3 @@ diff -purN ../cinstall/resource.h ./resource.h
  #define IDC_SOURCE_DOWNLOAD             1000
  #define IDC_SOURCE_NETINST              1001
  #define IDC_SOURCE_CWD                  1002
-diff -purN ../cinstall/version.c ./version.c
---- ../cinstall/version.c      Thu Jan  1 01:00:00 1970
-+++ ./version.c        Mon Sep 17 18:44:46 2001
-@@ -0,0 +1,2 @@
-+char *version = "2.96.jcn1";
-+static char *id = "\n%%% setup-version 2.96.jcn1\n";
index 0f8792a552aa6e67cf8537957931fd01afa2fd92..b48a81e70f135ad745f11e9dbddd1d7838571885 100644 (file)
@@ -27,6 +27,6 @@ function fix_extension ()
 
 for i in `/bin/ls -d1 $*`; do
        fix_extension $i .exe '.*Windows.*\(executable\).*'
-       fix_extension $i .py '.*\(python\).*'
+#      fix_extension $i .py '.*\(python\).*'
 done
 
diff --git a/Documentation/windows/gs-profile.sh b/Documentation/windows/gs-profile.sh
new file mode 100644 (file)
index 0000000..3e533b1
--- /dev/null
@@ -0,0 +1,22 @@
+#!@SHELL@
+# /etc/profile.d/gs-profile.sh -- Check for GhostScript
+
+gs550="/usr/windows/gstools/gs5.50"
+gs650="/usr/windows/gs/gs6.50"
+
+# Maybe read registry, but that may be hairy?
+# 
+# $ regtool get \\HKLM\\Software\\CLASSES\\psfile\\shell\\open\\command\\
+# "C:\GSTOOLS\GSVIEW\gsview32.exe" "%1"
+
+## we set GS_LIB although the registry keys have been set.
+
+if [ -e "$gs550/gswin32.exe" ]; then
+       PATH="$gs550:$PATH"
+       GS_LIB="$gs550/lib:"${GS_LIB:=""}
+fi
+
+if [ -e "$gs650/bin/gswin32.exe" ]; then
+       PATH="$gs650/bin:$PATH"
+       GS_LIB="$gs650/lib:"${GS_LIB:=""}
+fi
diff --git a/Documentation/windows/gsview-profile.sh b/Documentation/windows/gsview-profile.sh
new file mode 100644 (file)
index 0000000..eb5aeaf
--- /dev/null
@@ -0,0 +1,19 @@
+#!@SHELL@
+# /etc/profile.d/gsview-profile.sh  Check for GhostView
+
+gsview26="/usr/windows/gstools/gsview"
+gsview36="/usr/windows/Ghostgum/GSview"
+
+# Maybe read registry, but that may be hairy?
+# 
+# $ regtool get \\HKLM\\Software\\CLASSES\\psfile\\shell\\open\\command\\
+# "C:\GSTOOLS\GSVIEW\gsview32.exe" "%1"
+
+if [ -e "$gsview26/gsview32.exe" ]; then
+       PATH="$gsview26:$PATH"
+fi
+
+if [ -e "$gsview36/gsview32.exe" ]; then
+       PATH="$gsview36:$PATH"
+fi
+
index daa584aca59a897a3b86be4f440b446b9748a8ca..085fb63e8dbd9ff2a70cf18c10d42ee46d96b9ca 100644 (file)
@@ -2,10 +2,6 @@
 @setfilename installing.info
 @settitle LilyPond on Windows
 
-@html
-<!--- @@WEB-TITLE@@=Windows Installation --->
-@end html
-
 @node Top
 @top
 
@@ -15,34 +11,45 @@ This document explains how to install the binary release for windows
 on a Microsoft Windows 95, 98, NT or 2000 machine.
 
 This release is a free extra service of the developers to assist windows
-users.  Please remember that we (the developers) rather dislike windows,
-and none of us use it.  Don't complain to us that installing LilyPond is
-too difficult; rather, if you know something about your Windows, send us
-code that works better (see @uref{compiling.html,compiling}).
-Nevertheless, detailed bug reports are appreciated; before you send a
-report, make sure to read the section on bugreports below. 
-
+users.  When reporting problems,  please keep in mind that we (the developers)
+do not use Windows.  In fact,  if you know something about Windows, and
+are able to write code, please send us code that works better (see
+@uref{compiling.html,compiling}).
 
 @section Windows binary setup 
 
+Apart from LilyPond itself, you need Cygwin, GUILE, Python and a TeX
+installation, but all this software be installed by running setup.exe:
+
+@table @asis
+@item LilyPond
+Download and run
+@c let's do http, so that people read the README
+@uref{http://www.lilypond.org/gnu-windows/setup.exe, setup.exe}
+to install LilyPond.
+
+This will install the minimal set of cygwin tools needed to run
+LilyPond.  Make sure to install in the default place, @file{c:/cygwin},
+and install everything.
+
+As of version 1.3.150, you also have the option to install MiKTeX and
+GSView from this installer, which is recommended.  If you choose to
+install these by hand (see below), make sure to install them
+@strong{before} you install LilyPond, otherwise your LilyPond setup will
+be broken.
 
-All the software you need is installed by downloading and running
-@uref{http://www.lilypond.org/gnu-windows/setup.exe, setup.exe}.  You
-will be asked some questions. If you are unsure just click "Next".  Do
-not change the default install directory @file{c:/cygwin}.
+If you already have cygwin installed, don't worry: nothing will be
+installed twice.  To expand on this minimal set, click
+@uref{http://sources.redhat.com/cygwin/setup.exe,here}, or visit a
+Cygwin @uref{http://sources.redhat.com/cygwin/mirrors.html,mirror site}.
+@end table
 
-This installs LilyPond, and Cygwin, GUILE, Python, MiKTeX and GSView If
-you already have some of that software under @file{c:/cygwin}, then
-don't worry: nothing will be installed twice.
 
-If you want to install any of this software by hand, do this
-@strong{before} you run @file{setup.exe}, otherwise your LilyPond setup
-will not work.
+@section Windows running setup
 
-@section Testing LilyPond
+If you're lucky, after running @file{setup.exe} you're all set up.
 
-Open a LilyPond shell (To open a a lilypond shell, click the "GNU
-LilyPond" icon), and type
+Open a LilyPond shell (or any bash shell), and type
 
 @quotation
 @example
@@ -50,7 +57,7 @@ lilypond --help
 @end example
 @end quotation
 
-You should see something similar to
+If you don't see something similar to
 
 @quotation
 @example
@@ -68,71 +75,25 @@ Options:
 @end example
 @end quotation
 
-Then, prepare a file called @file{foo.ly}, by issuing
-@example
-notepad foo.ly
-@end example
-Enter the following into the file
-@example
-
-\score @{ \notes @{ c4 ( ) c4 @} @}
-
-@end example
-Close the file and save it. Run the following command a few times until
-it says @code{PS output to `foo.ps', DVI output to `foo.dvi'}.
-@example
-
-ly2dvi -P foo
-
-@end example
-You can now view the file using the following command
-@example
-
-gsview32 foo.ps
-
-@end example
-
-If this works, then you can head to the
-@uref{../../user/out-www/lilypond/Tutorial.html,Tutorial} to start using
-LilyPond.
+you should try adding @file{/usr/lilypond-x.y.z/bin} to your @var{PATH},
+do:
 
-
-
-@section Removing LilyPond
-
-Start @file{setup.exe}, click Next, select "Install from Local
-Directory". Then click next until you reach "Select packages to
-install". Click "View". Now, for every package, click on the recycle
-icon until it says "Uninstall". Then, click Next.
-
-(If you find this too tedious, you can also simply remove
-@file{c:/cygwin}. This also removes the @file{/home/} directories under
-cygwin (i.e. @file{C:\CYGWIN\HOME}, so make sure that you bring
-important files in safety first.)
-
-@section Troubleshooting
-
-
-@unnumberedsubsec invoking lilypond --help doesn't work
-
-Open the shell, and try adding @file{/usr/lilypond-x.y.z/bin} to your
-@var{PATH}, do:
 @quotation
 @example
 PATH=/usr/lilypond-1.4.2/bin:$PATH
 @end example
 @end quotation
 
-Now, invoke @file{lilypond --help}
+and try again.
+
+
+@subsection Trouble
 
 For problems and solutions see
 @uref{http://lilypond.org/wiki?TroubleshootingWindows,Troubleshooting
 Windows}
 
 
-
-
-@ignore
 @subsection Additional software
 
 LilyPond needs a number of software packages to be really useful.  These
@@ -176,8 +137,11 @@ Click @uref{ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/gs650/gs650w32.exe
 @uref{ftp://ftp.cs.wisc.edu/ghost/ghostgum,ftp.cs.wisc.edu}.
 or visit the
 @uref{http://www.cs.wisc.edu/~ghost/,Ghostscript, Ghostview and GSview site}.
+
 @end table
 
+
+
 [TODO:
 
 
@@ -186,6 +150,9 @@ emacs-on-cygwin setup.
 
 ]
 
+
+@ignore 
+
   guile -v
   Guile 1.4.1
 
@@ -217,19 +184,4 @@ in each corner.
 
 @end ignore
 
-@ignore
-@c irrelevant.
-
-If you want to install more of cygwnTo expand on this minimal set,
-@section If you already have MikTeX, GSView or
 
-If you already have cygwin installed, don't worry: nothing will be
-installed twice.  To expand on this minimal set, click
-@uref{http://sources.redhat.com/cygwin/setup.exe,here}, or visit a
-Cygwin @uref{http://sources.redhat.com/cygwin/mirrors.html,mirror site}.
-
-
-This will install the minimal set of cygwin tools needed to run
-LilyPond.  Make sure to install in the default place, @file{c:/cygwin},
-and install everything. 
-@end ignore
diff --git a/Documentation/windows/post-lilypond.sh b/Documentation/windows/post-lilypond.sh
new file mode 100644 (file)
index 0000000..8259c90
--- /dev/null
@@ -0,0 +1,8 @@
+#!@SHELL@
+# /etc/profile.d/post-lily.sh  -- Setup LilyPond
+
+rm -f /usr/lilypond
+lily=@prefix@
+ln -s $lily /usr/lilypond
+
+
diff --git a/Documentation/windows/setup.hint b/Documentation/windows/setup.hint
new file mode 100644 (file)
index 0000000..bffbe89
--- /dev/null
@@ -0,0 +1,4 @@
+sdesc: "A program for printing sheet music"
+category: Publishing
+requires: ash bash guile python tetex-beta texmf-base
+#suggests: rxvt xdvi
index 214219902f0a0e9a6c66ca297d98a595379c0466..32aa1480564dea7401574b65bea39f897902d902 100644 (file)
@@ -28,7 +28,7 @@ GS_LIB="$WINDOWS_GS_LIB"
 PATH="/usr/lilypond/bin:$PATH"
 PATH="@prefix@/bin:$PATH"
 
-PATH="/usr/lilypond/wrappers:$PATH"
-PATH="@prefix@/wrappers:$PATH"
+PATH="/usr/lilypond/wrappers:$PATH"
+PATH="@prefix@/wrappers:$PATH"
 
 
index 627e5a9a92fd51e9c9bfa85b373c7ab1335e7142..1d8180ac5e0e80eb3065cc3b25ab306e1f26514e 100644 (file)
@@ -20,7 +20,7 @@ SCRIPTS = configure aclocal.m4
 README_FILES =  ChangeLog CHANGES COPYING DEDICATION NEWS README.mandrake ROADMAP
 README_TXT_FILES = AUTHORS.txt README.txt INSTALL.txt FAQ.txt
 IN_FILES := $(wildcard *.in)
-EXTRA_DIST_FILES = lilypond-font-lock.el lilypond-mode.el lilypond-init.el vimrc VERSION $(README_FILES)  $(SCRIPTS) $(IN_FILES)  emacsclient.patch lexer-gcc-3.0.patch
+EXTRA_DIST_FILES = lilypond-font-lock.el lilypond-mode.el lilypond-init.el vimrc VERSION $(README_FILES)  $(SCRIPTS) $(IN_FILES)  emacsclient.patch lexer-gcc-3.0.patch .cvsignore
 NON_ESSENTIAL_DIST_FILES = $(README_TXT_FILES)
 INSTALLATION_DIR=$(datadir)
 INSTALLATION_FILES=$(configuration) VERSION
index 703df5ccc7b38fba47a9999d1b98cfd39188a10e..cae362c8ae6acfd5b4c88787c8e5056868c867fe 100644 (file)
 datadir=`echo "@datadir@" | sed 's!//!/!g'`
 
 # For direct ps output fonts
-GS_FONTPATH="$datadir/afm:$datadir/pfa"
+GS_FONTPATH="$datadir/afm:$datadir/pfa:"${GS_FONTPATH:=""}
 
 # For direct ps output: ps/lilyponddefs.ps
-GS_LIB="$datadir/ps"
+GS_LIB="$datadir/ps:"${GS_LIB:=""}
 
 # bit silly. for ly2dvi, overrules compiled-in datadir...
 # Better comment this out.  Compiled-in datadir serves exactly the