summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2018-11-21 18:58:40 (EST)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2018-11-21 18:58:40 (EST)
commit522be3b9fe7c471906990de3a2ab939d95070e64 (patch)
tree10088ce0cfeb8bbdb3a48e462382d8a23dc0d5f3
parentb8a3b44d3daf88a9e02fd443e8b9c0aa56e800b2 (diff)
tools/shld.sh: Expose library creation to CLI
-rwxr-xr-xtools/shld.sh14
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}"