[pulseaudio-discuss] [PATCH] make bootstrap.sh aware of Darwin environment
Daniel Mack
daniel at caiaq.de
Fri Jul 17 04:48:16 PDT 2009
>From 5f5867e08ab8821447faacece92dab1e0b993fe4 Mon Sep 17 00:00:00 2001
From: Daniel Mack <daniel at caiaq.de>
Date: Fri, 17 Jul 2009 13:45:37 +0200
Subject: [PATCH] make bootstrap.sh aware of Darwin environment
Signed-off-by: Daniel Mack <daniel at caiaq.de>
---
bootstrap.sh | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/bootstrap.sh b/bootstrap.sh
index aa9755f..a5bd9a7 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
--
1.6.3.3
More information about the pulseaudio-discuss
mailing list