bake/install.sh
Emil Williams a6cc06f8b1 distrib
2024-03-24 20:31:24 +00:00

16 lines
361 B
Bash
Executable File

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