]> git.sven.stormbind.net Git - sven/java-package.git/commitdiff
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 64c37635f7e34254130e7902cfdff326b4c7430d..e1e16cefad598eb8cfc18401671681ae3478abe3 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