mirror of
http://git.davidovski.xyz/shblg.git
synced 2024-08-15 00:43:48 +00:00
add install script to install
This commit is contained in:
parent
52e9c3aeea
commit
50074253d0
3 changed files with 8 additions and 18 deletions
8
install.sh
Executable file
8
install.sh
Executable 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
|
18
src/test.sh
18
src/test.sh
|
@ -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"
|
||||
|
Loading…
Reference in a new issue