Thread: [Japi-cvs] SF.net SVN: japi:[740] imajar/trunk/bin
Status: Beta
Brought to you by:
christianhujer
|
From: <chr...@us...> - 2008-12-26 18:26:52
|
Revision: 740
http://japi.svn.sourceforge.net/japi/?rev=740&view=rev
Author: christianhujer
Date: 2008-12-26 18:26:50 +0000 (Fri, 26 Dec 2008)
Log Message:
-----------
Improved documentation.
Modified Paths:
--------------
imajar/trunk/bin/imajar.sh
imajar/trunk/bin/insjar.sh
Modified: imajar/trunk/bin/imajar.sh
===================================================================
--- imajar/trunk/bin/imajar.sh 2008-12-26 15:08:28 UTC (rev 739)
+++ imajar/trunk/bin/imajar.sh 2008-12-26 18:26:50 UTC (rev 740)
@@ -1,4 +1,9 @@
#!/bin/sh
+
+# WARNING
+# This program MUST NOT have any options!
+# All arguments MUST BE passed further to the invoked jar.
+
USERJARS=~/bin/jars/
JARNAME=$(basename $0)
#java -client -Xshare:on -jar "$USERJARS/$JARNAME.jar" "$@"
Modified: imajar/trunk/bin/insjar.sh
===================================================================
--- imajar/trunk/bin/insjar.sh 2008-12-26 15:08:28 UTC (rev 739)
+++ imajar/trunk/bin/insjar.sh 2008-12-26 18:26:50 UTC (rev 740)
@@ -1,7 +1,42 @@
#!/bin/sh
+
+function usage {
+ cat <<END
+Usage: imajar.sh [OPTION]... JARNAME LINKNAME
+Installs a jar as "executable program".
+
+JARNAME: Path to the jar file that shall be copied.
+LINKNAME: Name of the link that shall be used for the executable.
+
+Options:
+ -h Display this help information
+
+This program normally is not run by a user or admin directly.
+END
+};
+
+while getopts ":h" option
+do
+ case $option in
+ h)
+ usage
+ ;;
+ \?)
+ usage
+ exit 1
+ ;;
+ *)
+ usage
+ exit 1
+ ;;
+ esac
+done
+
+exit
+
mkdir -p $HOME/bin/jars/
-cp "$1" $HOME/bin/jars/
-rm -f "$HOME/bin/jars/$2.jar"
-ln -s "$HOME/bin/jars/$1" "$HOME/bin/jars/$2.jar"
-rm -f "$HOME/bin/$2"
-ln -s "$HOME/bin/imajar.sh" "$HOME/bin/$2"
+cp "$1" $HOME/bin/jars/
+rm -f "$HOME/bin/jars/$2.jar"
+ln -s "$HOME/bin/jars/$1" "$HOME/bin/jars/$2.jar"
+rm -f "$HOME/bin/$2"
+ln -s "$HOME/bin/imajar.sh" "$HOME/bin/$2"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <chr...@us...> - 2009-02-14 15:24:42
|
Revision: 800
http://japi.svn.sourceforge.net/japi/?rev=800&view=rev
Author: christianhujer
Date: 2009-02-14 15:24:39 +0000 (Sat, 14 Feb 2009)
Log Message:
-----------
Updated copyright notice.
Modified Paths:
--------------
imajar/trunk/bin/imajar.sh
imajar/trunk/bin/insjar.sh
imajar/trunk/bin/install.sh
Modified: imajar/trunk/bin/imajar.sh
===================================================================
--- imajar/trunk/bin/imajar.sh 2009-02-14 12:48:21 UTC (rev 799)
+++ imajar/trunk/bin/imajar.sh 2009-02-14 15:24:39 UTC (rev 800)
@@ -1,5 +1,21 @@
#!/bin/sh
+# Copyright (C) 2009 Christian Hujer.
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+
# WARNING
# This program MUST NOT have any options!
# All arguments MUST BE passed further to the invoked jar.
Modified: imajar/trunk/bin/insjar.sh
===================================================================
--- imajar/trunk/bin/insjar.sh 2009-02-14 12:48:21 UTC (rev 799)
+++ imajar/trunk/bin/insjar.sh 2009-02-14 15:24:39 UTC (rev 800)
@@ -1,5 +1,21 @@
#!/bin/sh
+# Copyright (C) 2009 Christian Hujer.
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+
function usage {
cat <<END
Usage: imajar.sh [OPTION]... JARNAME LINKNAME
Modified: imajar/trunk/bin/install.sh
===================================================================
--- imajar/trunk/bin/install.sh 2009-02-14 12:48:21 UTC (rev 799)
+++ imajar/trunk/bin/install.sh 2009-02-14 15:24:39 UTC (rev 800)
@@ -1,2 +1,19 @@
#!/bin/sh
+
+# Copyright (C) 2009 Christian Hujer.
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+
cp imajar.sh insjar.sh ~/bin/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|