add install script to install

This commit is contained in:
davidovski 2023-06-12 04:02:07 +01:00
parent 52e9c3aeea
commit 50074253d0
3 changed files with 8 additions and 18 deletions

8
install.sh Executable file
View file

@ -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

View file

@ -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"