add manpage

This commit is contained in:
Emil Williams 2024-02-14 18:14:32 +00:00
parent 2ded3e61e7
commit 6a1a003f6b
2 changed files with 9 additions and 2 deletions

BIN
bake.1.gz Normal file

Binary file not shown.

View File

@ -1,6 +1,13 @@
#!/bin/sh #!/bin/sh
TARGET=${TARGET:-/usr/local}
INSTALL=${INSTALL:-bake shake}
cd $(dirname "$(readlink -f "$0")") cd $(dirname "$(readlink -f "$0")")
SUDO=${SUDO-sudo}
chmod +x shake chmod +x shake
./shake bake.c -s $@ && \ ./shake bake.c -s $@ && \
$SUDO install -m 755 shake bake ${TARGET:-/usr/local/bin} mkdir $TARGET/bin $TARGET/man/man1 -p && \
install -m 755 $INSTALL $TARGET/bin && \
install -m 644 bake.1.gz $TARGET/man/man1 && \
ln -f -s $TARGET/man/man1/bake.1.gz $TARGET/man/man1/shake.1.gz