diff options
author | davidovski <david@davidovski.xyz> | 2023-06-12 04:02:07 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2023-06-12 04:02:07 +0100 |
commit | 50074253d03d2f8568d44fd931b84ce212156be9 (patch) | |
tree | 2d0de0b1ef7bd0f122d2c2de3cbc3643253c98eb | |
parent | 52e9c3aeea18d5750fea8704711a113adae93903 (diff) |
add install script to install
-rwxr-xr-x | install.sh | 8 | ||||
-rwxr-xr-x | src/shblg.sh (renamed from src/shblg) | 0 | ||||
-rwxr-xr-x | src/test.sh | 18 |
3 files changed, 8 insertions, 18 deletions
diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..9c8a653 --- /dev/null +++ b/install.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +# installs m2html and shblg to the system path + +PREFIX=${PREFIX:-/usr} + +install -m755 src/md2html.sh ${PREFIX}/bin/md2html +install -m755 src/shblg.sh ${PREFIX}/bin/shblg diff --git a/src/test.sh b/src/test.sh deleted file mode 100755 index 84c5405..0000000 --- a/src/test.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh - - -line="hell o world" -# replace tabs with spaces -l="$line" -line= -while [ "$l" ]; do - c="${l%*${l#?}}" - case "$c" in - "\t") line="$line ";; - *) line="$line$c" ;; - esac - l="${l#?}" - printf "%s\n" "$c" -done -printf "%s\n" "$line" - |