packages: stanse/stanse.sh - new location for bundled jars (fixed CLASSPATH...
pawelz
pawelz at pld-linux.org
Wed Oct 14 10:15:45 CEST 2009
Author: pawelz Date: Wed Oct 14 08:15:45 2009 GMT
Module: packages Tag: HEAD
---- Log message:
- new location for bundled jars (fixed CLASSPATH)
- new location for perl scripts (export PATH)
- initialize STANSE_HOME (link bin, copy data and properties from _datadir)
---- Files affected:
packages/stanse:
stanse.sh (1.4 -> 1.5)
---- Diffs:
================================================================
Index: packages/stanse/stanse.sh
diff -u packages/stanse/stanse.sh:1.4 packages/stanse/stanse.sh:1.5
--- packages/stanse/stanse.sh:1.4 Wed Oct 14 09:11:51 2009
+++ packages/stanse/stanse.sh Wed Oct 14 10:15:40 2009
@@ -1,9 +1,21 @@
-#!/bin/sh
+#!/bin/sh -e
-CLASSPATH=$(build-classpath-directory /usr/share/java/stanse):$(find-jar stanse)
+# Set paths
+
+CLASSPATH=$(build-classpath-directory /usr/share/stanse/lib)
+CLASSPATH=$CLASSPATH:$(find-jar stanse)
export CLASSPATH
+
+PATH=$PATH:/usr/share/stanse/data/bin
+export PATH
+
+# Initialize STANSE_HOME
+
STANSE_HOME=${STANSE_HOME:-"$HOME/.stanse"}
export STANSE_HOME
mkdir -p $STANSE_HOME
+[ -e "$STANSE_HOME/bin" ] || ln -s /usr/share/stanse/bin $STANSE_HOME/bin
+[ -e "$STANSE_HOME/data" ] || cp -a /usr/share/stanse/data $STANSE_HOME/data
+[ -e "$STANSE_HOME/properties.xml" ] || cp -a /usr/share/stanse/properties.xml $STANSE_HOME/properties.xml
java cz.muni.stanse.Stanse $@
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/stanse/stanse.sh?r1=1.4&r2=1.5&f=u
More information about the pld-cvs-commit
mailing list