Support use without installation through J2SE_PACKAGE_LIBDIR=./lib ./make-jpkg <java...
authorCédric Pineau <cedric.pineau@gmail.com>
Fri, 20 Jan 2012 22:00:24 +0000 (23:00 +0100)
committerCédric Pineau <cedric.pineau@gmail.com>
Fri, 20 Jan 2012 22:00:24 +0000 (23:00 +0100)
make-jpkg

index 64c3763..e1e16ce 100755 (executable)
--- a/make-jpkg
+++ b/make-jpkg
@@ -199,11 +199,10 @@ install -d -m 755 "$install_dir"
 
 # load and execute plugins
 echo -n "Loading plugins:"
-cd "$lib_dir"
-files=(*.sh)
+files=($lib_dir/*.sh)
 for file in "${files[@]}"; do
     echo -n " $file"
-    source "$lib_dir/$file"
+    source "$file"
 done
 
 echo