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")")
|
2023-10-15 20:56:16 -04:00
|
|
|
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 && \
|
2024-03-02 05:30:05 -05:00
|
|
|
install -m 755 $INSTALL $TARGET/bin
|
|
|
|
|
|
|
|
gzip -c bake.1 > $TARGET/man/man1/bake.1.gz && \
|
2024-02-14 13:14:32 -05:00
|
|
|
ln -f -s $TARGET/man/man1/bake.1.gz $TARGET/man/man1/shake.1.gz
|