]> git.donarmstrong.com Git - lilypond.git/blobdiff - buildscripts/lilypond-login.sh
(music_property_def): oops. SCM_UNDEFINED
[lilypond.git] / buildscripts / lilypond-login.sh
old mode 100755 (executable)
new mode 100644 (file)
index ec2dac6..d0c0377
@@ -4,33 +4,44 @@
 # 
 # Red Hat-like systems should install this in /etc/profile.d/
 
-# strange shell, this C
-set datadir="@datadir@"
+# If run by hand or from you .login, run as follows
+#   source lilypond-profile
+
+
 
-setenv GS_FONTPATH "$datadir/afm:@datadir@/pfa:$GS_FONTPATH"
-setenv GS_LIB "$datadir/ps:$GS_LIB"
+# 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@"
 
-# bit silly. for ly2dvi, overrules compiled-in datadir...
-# setenv LILYPONDPREFIX "@datadir@"
+# Add the installation directory to the teTeX system tree, 
+# see Documentation/misc/fontinstallation
 
-# include an empty path component for the system wide includes.
-if ($?MFINPUTS) then
-        setenv MFINPUTS "$datadir/mf:${MFINPUTS}::"
-else
-        setenv MFINPUTS "$datadir/mf::"
-endif
-if ($?TEXINPUTS) then
-        setenv TEXINPUTS "$datadir/tex:${TEXINPUTS}::"
-else
-        setenv TEXINPUTS "$datadir/tex::"
-endif
-if ($?TFMFONTS) then
-        setenv TFMFONTS "$datadir/tfm:$TFMFONTS"
-else
-        setenv TFMFONTS "$datadir/tfm:"
+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