From 522be3b9fe7c471906990de3a2ab939d95070e64 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Wed, 21 Nov 2018 18:58:40 -0500 Subject: tools/shld.sh: Expose library creation to CLI --- (limited to 'tools') diff --git a/tools/shld.sh b/tools/shld.sh index e1dff5f..2a5587c 100755 --- a/tools/shld.sh +++ b/tools/shld.sh @@ -19,10 +19,10 @@ set -u -VERSION='0.1.0' +VERSION='0.2.0' output='out.sh' -make_executable=true +make_executable=false interpreter='/bin/sh' entry_point='main' @@ -101,10 +101,10 @@ help() Options: -h Display this information -V Display linker version information - -I Use as the interpreter for your program, instead of the - default of "/bin/sh" - -e Use as the function for beginning execution of your - program, instead of the default of "main" + -I Make an executable and use as the interpreter for your + program, instead of the default of "/bin/sh" + -e Make an executable and use as the function for beginning + execution of your program, instead of the default of "main" -o Use as the name of the program produced by shld, instead of the default of "out.sh" EOF @@ -135,9 +135,11 @@ main() ;; 'I') interpreter="${OPTARG}" + make_executable=true ;; 'e') entry_point="${OPTARG}" + make_executable=true ;; 'o') output="${OPTARG}" -- cgit v0.9.1