8 Usage: $0 simgrid.jar java_command strip_command [-so file.so...] [-txt file.txt...]
9 simgrid.jar SimGrid jar file
10 java_command path to the Java runtime
11 strip_command path to the command used to strip libraries
12 file.so library file to stript and bundle into the archive
13 file.txt other file to bundle into the archive
23 JSG_BUNDLE=$("$JAVA" -classpath "$SIMGRID_JAR" org.simgrid.NativeLib)
29 -- [Java] Native libraries bundled into: ${JSG_BUNDLE}
34 -- [Java] Native libraries NOT bundled into invalid directory: ${JSG_BUNDLE}
42 mkdir -p "$JSG_BUNDLE"
44 if [ "$1" = "-so" ]; then
47 [ "$file" != "-txt" ] || break
48 cp -f "$file" "$JSG_BUNDLE"
49 "$STRIP" -S "$JSG_BUNDLE/${file##*/}"
54 if [ "$1" = "-txt" ]; then
57 cp -f "$file" "$JSG_BUNDLE"