2023-09-27 01:28:54 -04:00
|
|
|
#!/bin/sh
|
2024-03-24 16:31:24 -04:00
|
|
|
# source install
|
2024-02-14 13:14:32 -05:00
|
|
|
|
|
|
|
TARGET=${TARGET:-/usr/local}
|
2024-09-26 23:13:43 -04:00
|
|
|
INSTALL=${INSTALL:-bake}
|
2024-02-14 13:14:32 -05:00
|
|
|
|
2024-09-22 17:21:10 -04:00
|
|
|
cd "$(dirname "$(readlink -f $0)")"
|
2024-02-14 13:14:32 -05:00
|
|
|
|
2024-09-26 23:13:43 -04:00
|
|
|
./shake bake.l -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
|
|
|
|
|
2024-09-26 23:13:43 -04:00
|
|
|
gzip -c bake.1 > $TARGET/man/man1/bake.1.gz
|