Further simplify on Daniel's patch for bootstrap.sh.

Instead of having further indirections, stick to POSIX command options for
cp and chmod. This leaves just the LIBTOOL handling to be Darwin-specific.
This commit is contained in:
Diego Elio 'Flameeyes' Pettenò 2009-07-17 20:48:44 +02:00
parent 191c57effe
commit 8c85c99996

View file

@ -42,20 +42,14 @@ set -ex
case $(uname) in case $(uname) in
*Darwin*) *Darwin*)
CP_OPTS="-R"
CHMOD_OPTS=""
LIBTOOLIZE="glibtoolize" LIBTOOLIZE="glibtoolize"
;; ;;
*)
CP_OPTS="-av"
CHMOD_OPTS="-c"
;;
esac esac
if [ -f .git/hooks/pre-commit.sample -a ! -f .git/hooks/pre-commit ] ; then if [ -f .git/hooks/pre-commit.sample -a ! -f .git/hooks/pre-commit ] ; then
echo "Activating pre-commit hook." echo "Activating pre-commit hook."
cp ${CP_OPTS} .git/hooks/pre-commit.sample .git/hooks/pre-commit cp -pv .git/hooks/pre-commit.sample .git/hooks/pre-commit
chmod ${CHMOD_OPTS} +x .git/hooks/pre-commit chmod -v +x .git/hooks/pre-commit
fi fi
if [ -f .tarball-version ]; then if [ -f .tarball-version ]; then