mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-11 13:30:02 -05:00
make bootstrap.sh aware of Darwin environment
Signed-off-by: Daniel Mack <daniel@caiaq.de>
This commit is contained in:
parent
7e4509f9e5
commit
5f5867e08a
1 changed files with 14 additions and 2 deletions
16
bootstrap.sh
16
bootstrap.sh
|
|
@ -40,10 +40,22 @@ run_versioned() {
|
||||||
|
|
||||||
set -ex
|
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
|
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 -av .git/hooks/pre-commit.sample .git/hooks/pre-commit
|
cp ${CP_OPTS} .git/hooks/pre-commit.sample .git/hooks/pre-commit
|
||||||
chmod -c +x .git/hooks/pre-commit
|
chmod ${CHMOD_OPTS} +x .git/hooks/pre-commit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f .tarball-version ]; then
|
if [ -f .tarball-version ]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue