]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-1.0.1
authorfred <fred>
Wed, 8 Jul 1998 09:28:35 +0000 (09:28 +0000)
committerfred <fred>
Wed, 8 Jul 1998 09:28:35 +0000 (09:28 +0000)
stepmake/bin/package-zet.sh [new file with mode: 0755]

diff --git a/stepmake/bin/package-zet.sh b/stepmake/bin/package-zet.sh
new file mode 100755 (executable)
index 0000000..9c8cf8e
--- /dev/null
@@ -0,0 +1,42 @@
+#!/bin/sh
+# package-zet.sh --- help configure a StepMake package's sourcetree
+# normally invoked by a script like:
+# 
+#   zet-pack.sh  ( e.g.: ". bin/zet-lily.sh")
+#
+PACKAGE=`echo $PACKAGE_NAME | tr '[a-z]' '[A-Z]'`
+package=`echo $PACKAGE_NAME | tr '[A-Z]' '[a-z]'`
+#
+# You should set ${PACKAGE}_SOURCEDIR to the latest unpacked source dir,
+# it will default to:
+#
+#  $sources/$package  (e.g.: LILYPOND_SOURCEDIR=/home/fred/usr/src/lilypond)
+#
+
+
+PACKAGE_SOURCEDIR=`eval echo '\$'${PACKAGE}_SOURCEDIR`
+if [ "x$PACKAGE_SOURCEDIR" = "x" ]; then
+    eval ${PACKAGE}_SOURCEDIR="$prefix/src/$package"
+    export ${PACKAGE}_SOURCEDIR
+    PACKAGE_SOURCEDIR=`eval echo '\$'${PACKAGE}_SOURCEDIR`
+fi
+#
+# and create links to here, if necessary
+#
+if [ ! -r $sources ]; then
+       (cd ..; ln -s `pwd` $sources)
+fi
+#
+sourcetree=`basename \`pwd\``
+(cd ..; rm -f $package 2>&1 > /dev/null)
+(cd ..; ln -s $sourcetree $package)
+#
+mkdir -p $prefix/bin
+result=`echo $PATH | grep "$HOME/usr/bin"`
+if [ "x$result" = "x" ];then
+    PATH=$PATH:$HOME/usr/bin
+fi
+result=`echo $PATH | grep "$sources/$package/bin"`
+if [ "x$result" = "x" ];then
+    PATH=$PATH:$sources/$package/bin
+fi