bake/install.sh

14 lines
346 B
Bash
Raw Normal View History

2023-09-27 01:28:54 -04:00
#!/bin/sh
2024-02-14 13:14:32 -05:00
TARGET=${TARGET:-/usr/local}
INSTALL=${INSTALL:-bake shake}
2023-09-27 01:49:50 -04:00
cd $(dirname "$(readlink -f "$0")")
chmod +x shake
2024-02-14 13:14:32 -05:00
2024-01-21 09:51:54 -05:00
./shake bake.c -s $@ && \
2024-02-14 13:14:32 -05:00
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