summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2023-06-12 04:02:07 +0100
committerdavidovski <david@davidovski.xyz>2023-06-12 04:02:07 +0100
commit50074253d03d2f8568d44fd931b84ce212156be9 (patch)
tree2d0de0b1ef7bd0f122d2c2de3cbc3643253c98eb
parent52e9c3aeea18d5750fea8704711a113adae93903 (diff)
add install script to install
-rwxr-xr-xinstall.sh8
-rwxr-xr-xsrc/shblg.sh (renamed from src/shblg)0
-rwxr-xr-xsrc/test.sh18
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/shblg b/src/shblg.sh
index 226216c..226216c 100755
--- a/src/shblg
+++ b/src/shblg.sh
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"
-