Files
2026-11-21 04:57:07 +00:00

24 lines
383 B
Bash
Executable File

#!/bin/sh
for ent in "$@"; do
export "$ent"
done
cd $(dirname $0)
if [ -z "${PREFIX}" ]; then
echo "install.sh: Requires \$PREFIX." >&2
exit 1
fi
# Clean up target directory
rm -rf ./target
mkdir -p ./target
# Install tools
cp -a ./bin ./target/bin
# Install data
cp -a ./share ./target/share
sed -i "s|\$PREFIX|$PREFIX|g" $(find ./target/share/milestones -type f)