1
0
mirror of https://git.lain.church/bake/bake.git synced 2025-05-18 01:26:43 +00:00
bake/install.sh
2024-09-27 03:13:43 +00:00

14 lines
270 B
Bash
Executable File

#!/bin/sh
# source install
TARGET=${TARGET:-/usr/local}
INSTALL=${INSTALL:-bake}
cd "$(dirname "$(readlink -f $0)")"
./shake bake.l -s $@ && \
mkdir $TARGET/bin $TARGET/man/man1 -p && \
install -m 755 $INSTALL $TARGET/bin
gzip -c bake.1 > $TARGET/man/man1/bake.1.gz