]> code.delx.au - pulseaudio/blobdiff - bootstrap.sh
Sending translation for Serbian
[pulseaudio] / bootstrap.sh
index a5bd9a7814520006a16eea2681f930f26a199b3f..c7c858232bbc10b42838973d028aac4033df61f3 100755 (executable)
@@ -42,20 +42,14 @@ 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 ${CP_OPTS}  .git/hooks/pre-commit.sample .git/hooks/pre-commit
-    chmod ${CHMOD_OPTS} +x  .git/hooks/pre-commit
+    cp -p .git/hooks/pre-commit.sample .git/hooks/pre-commit && \
+    chmod +x .git/hooks/pre-commit && \
+    echo "Activated pre-commit hook."
 fi
 
 if [ -f .tarball-version ]; then
@@ -100,7 +94,7 @@ else
     run_versioned automake "$VERSION" --copy --foreign --add-missing
 
     if test "x$NOCONFIGURE" = "x"; then
-        CFLAGS="-g -O0" ./configure --sysconfdir=/etc --localstatedir=/var --enable-force-preopen "$@"
+        CFLAGS="$CFLAGS -g -O0" ./configure --sysconfdir=/etc --localstatedir=/var --enable-force-preopen "$@"
         make clean
     fi
 fi