2bab2fddde
-D option used in install.sh is a coreutils specific feature. OS X's implementation does not support it and some other implementation such as FreeBSD behaves differently.
20 lines
296 B
Bash
20 lines
296 B
Bash
#!/bin/sh -eu
|
|
|
|
prefix="/usr/local"
|
|
|
|
if [ "${PREFIX:-}" != "" ] ; then
|
|
prefix=${PREFIX:-}
|
|
elif [ "${BOXEN_HOME:-}" != "" ] ; then
|
|
prefix=${BOXEN_HOME:-}
|
|
fi
|
|
|
|
mkdir -p $prefix/bin
|
|
|
|
rm -rf $prefix/bin/git-lfs*
|
|
for g in git*; do
|
|
install $g "$prefix/bin/$g"
|
|
done
|
|
|
|
PATH+=:$prefix/bin
|
|
git lfs init
|