#!/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)