]> git.donarmstrong.com Git - lilypond.git/blobdiff - buildscripts/lilypond-login.sh
(music_property_def): oops. SCM_UNDEFINED
[lilypond.git] / buildscripts / lilypond-login.sh
index f66a50af09df54b1b44692e5bf09cc1993ac47f3..d0c0377945429cfe4d90df784855808a7bac05b6 100644 (file)
@@ -1,13 +1,47 @@
 #!/bin/csh
 
-# env. vars for the C-shell.
+# Setup TeX/LaTeX Ghostscript C-shell environment for LilyPond.
+# 
+# Red Hat-like systems should install this in /etc/profile.d/
+
+# If run by hand or from you .login, run as follows
+#   source lilypond-profile
+
+
+
+# strange shell, this C
+set datadir="@local_lilypond_datadir@"
+
+# setenv LILYPONDPREFIX "$datadir"
+# bit silly. for lilypond, overrules compiled-in datadir...
+# setenv LILYPONDPREFIX "@local_lilypond_datadir@"
+
+# Add the installation directory to the teTeX system tree, 
+# see Documentation/misc/fontinstallation
+
+set alreadyset = `kpsexpand \$TEXMF | grep "$datadir"`
+if ( "$alreadyset" == "" ) then
+    set noglob
+    setenv TEXMF "{$datadir,"`kpsexpand  \$TEXMF`"}"
+    unset noglob
+endif
+unset alreadyset
+
+
+
+# if ( $?GS_LIB ) then
+#       setenv GS_LIB "$datadir/ps:$GS_LIB"
+# else
+#       setenv GS_LIB "$datadir/ps"
+# endif
+
+
+
+# Add all available TeX Type1 fonts (including Feta) to Ghostscript:
+#if ( $?GS_FONTPATH ) then
+#       setenv GS_FONTPATH `kpsewhich -expand-path=\$T1FONTS`:$GS_FONTPATH
+#else
+#       setenv GS_FONTPATH `kpsewhich -expand-path=\$T1FONTS`
+#endif
 
-# set environment for LilyPond.  To be installed in /etc/profile.d/
-setenv GS_LIB "@datadir@/afm"
-setenv GS_FONTPATH "@datadir@/ps"
-setenv LILYINCLUDE "@datadir@/ly:@datadir@/afm"
 
-# include an empty path component for the system wide includes.
-setenv MFINPUTS "@datadir@/mf:"${MFINPUTS:=":"}
-setenv TEXINPUTS "@datadir@/tex:"${TEXINPUTS:=":"}
-setenv GUILE_LOAD_PATH "@datadir@/scm:$GUILE_LOAD_PATH"