You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: build.sh
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -362,20 +362,22 @@ pack_ruby() {
362
362
363
363
pkg="jni"
364
364
365
-
test"$#" -ne 1|| pkg=$1
365
+
test"$#" -eq 0|| pkg=$1
366
366
367
367
case$pkgin
368
-
ruby) build_ruby
368
+
ruby) RUBY_VERSION=${2:-$RUBY_VERSION}
369
+
build_ruby
369
370
;;
370
-
core|cores) build_cores
371
+
core|cores) CORE_VERSION=${2:-$CORE_VERSION}
372
+
build_cores
371
373
copy_jni_libs
372
374
;;
373
375
jni) build_jni
374
376
copy_jni_libs
375
377
;;
376
378
*)
377
379
scriptname=$(basename "$0")
378
-
echo -e "Usage: $scriptname <task>\n\ntask must be one of:\n - ruby : build the ruby archive\n - cores: build native tools used by cSploit (default)">&2
380
+
echo -e "Usage: $scriptname <task> [version]\n\ntask must be one of:\n - ruby : build the ruby archive\n - cores: build native tools used by cSploit (default)">&2
0 commit comments