diff options
author | Bjarno Oeyen | 2017-04-18 22:34:53 +0200 |
---|---|---|
committer | Bjarno Oeyen | 2017-04-18 22:34:53 +0200 |
commit | 18e6c125d998daeba79efeff893270c3e543b278 (patch) | |
tree | 84e905a2ab472a3b854b93cd541777bb2b501bcd /iat.sh | |
parent | bea5e229f8c065eda7184c9b07dbce7fc7b987a6 (diff) | |
download | aur-18e6c125d998daeba79efeff893270c3e543b278.tar.gz |
Changes description and changes executable from 'ambienttalk' to 'iat', to conform with upstream
Diffstat (limited to 'iat.sh')
-rw-r--r-- | iat.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/iat.sh b/iat.sh new file mode 100644 index 000000000000..fd1a263a9d35 --- /dev/null +++ b/iat.sh @@ -0,0 +1,23 @@ +#!/bin/sh + +# automatically extract all .jar for in classpath +JARS=`find -L /usr/share/java/ambienttalk -name '*.jar'` +JARPATH="" +DEFAULT_OBJPATH="" + +# append the .jar files using ':' to construct a valid classpath +for JAR in $JARS; +do + JARPATH="$JARPATH:$JAR" +done + +# Set AT_HOME +AT_HOME=/usr/share/ambienttalk + +# all top-level directories in the atlib/ subdirectory become available in the lobby +for ROOT in `ls $AT_HOME/atlib` +do + DEFAULT_OBJPATH="$ROOT=$AT_HOME/atlib/$ROOT:$DEFAULT_OBJPATH" +done + +java -DAT_HOME=$AT_HOME -DAT_INIT=$AT_HOME/atlib/at/init/init.at -DAT_OBJECTPATH=$AT_OBJECTPATH -DAT_LIBPATH=$DEFAULT_OBJPATH -classpath .:$CLASSPATH:$JARPATH edu.vub.at.IAT "$@" 2> /dev/null
\ No newline at end of file |