From 50074253d03d2f8568d44fd931b84ce212156be9 Mon Sep 17 00:00:00 2001 From: davidovski Date: Mon, 12 Jun 2023 04:02:07 +0100 Subject: [PATCH] add install script to install --- install.sh | 8 ++++++++ src/{shblg => shblg.sh} | 0 src/test.sh | 18 ------------------ 3 files changed, 8 insertions(+), 18 deletions(-) create mode 100755 install.sh rename src/{shblg => shblg.sh} (100%) delete mode 100755 src/test.sh 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 similarity index 100% rename from src/shblg rename to 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" -