diff options
author | Daniel Mack <daniel@caiaq.de> | 2009-07-17 13:45:37 +0200 |
---|---|---|
committer | Diego Elio 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2009-07-17 20:45:05 +0200 |
commit | 191c57effe385c797d8f226accd9afceee972888 (patch) | |
tree | 94a1804b42466ef54f55df459845f024f0cf8946 | |
parent | 0a5257b520ae540775367eb20a4db3e76436cdf9 (diff) |
make bootstrap.sh aware of Darwin environment
Signed-off-by: Daniel Mack <daniel@caiaq.de>
-rwxr-xr-x | bootstrap.sh | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/bootstrap.sh b/bootstrap.sh index aa9755fa..a5bd9a78 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -40,10 +40,22 @@ run_versioned() { set -ex +case $(uname) in + *Darwin*) + CP_OPTS="-R" + CHMOD_OPTS="" + LIBTOOLIZE="glibtoolize" + ;; + *) + CP_OPTS="-av" + CHMOD_OPTS="-c" + ;; +esac + if [ -f .git/hooks/pre-commit.sample -a ! -f .git/hooks/pre-commit ] ; then echo "Activating pre-commit hook." - cp -av .git/hooks/pre-commit.sample .git/hooks/pre-commit - chmod -c +x .git/hooks/pre-commit + cp ${CP_OPTS} .git/hooks/pre-commit.sample .git/hooks/pre-commit + chmod ${CHMOD_OPTS} +x .git/hooks/pre-commit fi if [ -f .tarball-version ]; then |