diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2018-11-21 18:58:40 (EST) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2018-11-21 19:10:22 (EST) |
commit | e4ccb5e50b0d40ffca12eabdd6c4d9cd40e7f851 (patch) | |
tree | 1b53f3794be608be21b3643eeaf3beb66953f4aa | |
parent | 3c017b59073bfe5ac365053c7306c90ba9911c58 (diff) |
tools/shld.sh: Expose library creation to CLI
-rwxr-xr-x | tools/shld.sh | 14 |
1 files changed, 8 insertions, 6 deletions
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 <interp> Use <interp> as the interpreter for your program, instead of the - default of "/bin/sh" - -e <entry> Use <entry> as the function for beginning execution of your - program, instead of the default of "main" + -I <interp> Make an executable and use <interp> as the interpreter for your + program, instead of the default of "/bin/sh" + -e <entry> Make an executable and use <entry> as the function for beginning + execution of your program, instead of the default of "main" -o <output> Use <output> 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}" |