summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"
-