path adjustments
authorMichael Wallner <mike@php.net>
Wed, 15 Jan 2014 10:47:50 +0000 (11:47 +0100)
committerMichael Wallner <mike@php.net>
Wed, 15 Jan 2014 10:47:50 +0000 (11:47 +0100)
curl.example.conf
php.example.conf
share/btr/btr.sh
share/btr/build/gnu.mk
share/btr/build/pecl.mk
share/btr/build/php.mk

index 3f7c677ec475f59f771474a762113c912cddc854..0bec4625185b5ce30c9261874c09dfdab4af498b 100644 (file)
@@ -1,3 +1,7 @@
+# Clone CURL's git (use master), build with GNU autotools ruleset which runs 
+# 'make check' and mail the report to the current user. Verbosely show all 
+# actions taken:
+
 BTR_VERBOSE=true
 BTR_SOURCE_RULES=git
 BTR_SOURCE_ARGS=https://github.com/bagder/curl.git
index c52ad8b26215abb83caaca0d6e1e46d4f15d2ed0..9408dd118711f82058ee870fb183c8551a6e2377 100644 (file)
@@ -1,3 +1,7 @@
+# Clone PHP's git, use PHP-5.5 branch, build with php ruleset and run the test
+# suite with valgrind (-m) on a debug build and report the results with a simple
+# OSD notification:
+
 BTR_SOURCE_RULES=git
 BTR_SOURCE_ARGS=git@php.net:php/php-src.git
 BTR_BRANCH=PHP-5.5
index 91bd80102e485820ec93efa1ee56c1eb9a8811d7..03cbdf3b574263dcad924dcc87f48160d43a2efc 100755 (executable)
@@ -37,21 +37,6 @@ function btr-help {
                        "$(find "$BTR_LIBDIR/$ruleset" -name '*.mk' -exec basename {} .mk \; | sort | xargs)"
        done
        echo
-       echo "  Examples:"
-       echo 
-       echo "  Clone PHP's git, use PHP-5.5 branch, build with php ruleset and"
-       echo "  run the test suite with valgrind (-m) on a debug build and report"
-       echo "  the results with a simple OSD notification:"
-       echo "    $ btr -s git=git@php.net:php/php-src.git -B PHP-5.5 \\"
-       echo "          -b \"php=--enable-debug\" -T-m -r notify-send"
-       echo "  See also php.example.conf"
-       echo
-       echo "  Clone CURL's git (use master), build with GNU autotools"
-       echo "  ruleset which runs 'make check' and mail the report to the"
-       echo "  current user. Verbosely show all actions taken:"
-       echo "    $ btr -v -s git=https://github.com/bagder/curl.git -b gnu -r mail"
-       echo "  See also curl.example.conf"
-       echo
        exit
 }
 export -f btr-help
index 0047ab7d11b19b3d36d65b13bc36455592b26943..1246cb11b44544b09c7b874a3a927a5dae186091 100644 (file)
@@ -18,28 +18,33 @@ clean: $(BTR_CONFIG_REPORT)
        fi;
 
 $(BTR_REPORT): $(BTR_TEST_REPORT)
-       if test -z "$(BTR_LAST_REPORT)"; then \
-               echo 0; \
-       elif test -s "$(BTR_LAST_REPORT)" -o -s "$(BTR_TEST_REPORT)"; then \
-               cmp $(BTR_LAST_REPORT) $(BTR_TEST_REPORT) 2>&1 || true; \
-       else \
-               echo 0; \
-       fi;
+       ( \
+               if test -z "$(BTR_LAST_REPORT)"; then \
+                       echo 0; \
+               elif test -s "$(BTR_LAST_REPORT)" -o -s "$(BTR_TEST_REPORT)"; then \
+                       cmp $(BTR_LAST_REPORT) $(BTR_TEST_REPORT) || true; \
+               else \
+                       echo 0; \
+               fi;
+       ) >$@ 2>&1
 
 $(BTR_TEST_REPORT): $(BTR_BUILD_REPORT)
        $(SAY) "Running checks..."
-       cd $(BTR_BUILD_DIR) && \
-               make check $(BTR_TEST_ARGS) >../$@ 2>&1
+       (cd $(BTR_BUILD_DIR) && \
+               make check $(BTR_TEST_ARGS) \
+       ) >$@ 2>&1
 
 $(BTR_BUILD_REPORT): $(BTR_CONFIG_REPORT)
        $(SAY) "Making build..."
-       cd $(BTR_BUILD_DIR) && \
-               make -j $(CPUS) >../$@ 2>&1
+       (cd $(BTR_BUILD_DIR) && \
+               make -j $(CPUS) \
+       ) >$@ 2>&1
        
 $(BTR_CONFIG_REPORT): $(BTR_BRANCH_DIR)/configure | $(BTR_BUILD_DIR) $(BTR_LOG_DIR)
        $(SAY) "Running configure..."
-       cd $(BTR_BUILD_DIR) && \
-               ../$(BTR_BRANCH_DIR)/configure -C $(BTR_BUILD_ARGS) >../$@ 2>&1
+       (cd $(BTR_BUILD_DIR) && \
+               ../../$(BTR_BRANCH_DIR)/configure -C $(BTR_BUILD_ARGS) \
+       ) >$@ 2>&1
 
 $(BTR_BUILD_DIR):
        mkdir -p $@
index 3ce75ccf1bbd8dc823975a64384b5f1635b921c7..a073bc58982bd8d2622181089b556dda133fb664 100644 (file)
@@ -35,17 +35,19 @@ $(BTR_REPORT): $(BTR_TEST_REPORT)
 $(BTR_TEST_REPORT): $(BTR_BUILD_REPORT)
        $(SAY) "Running tests... "
        cd $(BTR_BUILD_DIR) && \
-               make test TESTS="$(BTR_TEST_ARGS) -s ../$@" >/dev/null
+               make test TESTS="$(BTR_TEST_ARGS) -s ../../$@" >/dev/null
 
 $(BTR_BUILD_REPORT): $(BTR_CONFIG_REPORT)
        $(SAY) "Making build..."
-       cd $(BTR_BUILD_DIR) && \
-               make -j $(CPUS) >../$@ 2>&1
+       (cd $(BTR_BUILD_DIR) && \
+               make -j $(CPUS) \
+       ) >$@ 2>&1
        
 $(BTR_CONFIG_REPORT): $(BTR_BRANCH_DIR)/configure | $(BTR_BUILD_DIR) $(BTR_LOG_DIR)
        $(SAY) "Running 'configure'..."
-       cd $(BTR_BUILD_DIR) && \
-               ../$(BTR_BRANCH_DIR)/configure -C $(BTR_BUILD_ARGS) >../$@ 2>&1
+       (cd $(BTR_BUILD_DIR) && \
+               ../../$(BTR_BRANCH_DIR)/configure -C $(BTR_BUILD_ARGS) \
+       ) >$@ 2>&1
 
 $(BTR_BUILD_DIR):
        mkdir -p $@
index b858e2a6897243749ebf459ccf9f2f7669f1ad1d..730418b16c9c49c67eea70f18d4975a1fbe24b6d 100644 (file)
@@ -35,17 +35,19 @@ $(BTR_REPORT): $(BTR_TEST_REPORT)
 $(BTR_TEST_REPORT): $(BTR_BUILD_REPORT) 
        $(SAY) "Running tests... "
        cd $(BTR_BUILD_DIR) && \
-               make test TESTS="$(BTR_TEST_ARGS) -s ../$@"
+               make test TESTS="$(BTR_TEST_ARGS) -s ../../$@"
 
 $(BTR_BUILD_REPORT): $(BTR_CONFIG_REPORT)
        $(SAY) "Making build..."
-       cd $(BTR_BUILD_DIR) && \
-               make -j $(CPUS) >../$@ 2>&1
+       (cd $(BTR_BUILD_DIR) && \
+               make -j $(CPUS) \
+       ) >$@ 2>&1
        
 $(BTR_CONFIG_REPORT): $(BTR_BRANCH_DIR)/configure | $(BTR_BUILD_DIR) $(BTR_LOG_DIR)
        $(SAY) "Running 'configure'..."
-       cd $(BTR_BUILD_DIR) && \
-               ../$(BTR_BRANCH_DIR)/configure -C $(BTR_BUILD_ARGS) >../$@ 2>&1
+       (cd $(BTR_BUILD_DIR) && \
+               ../../$(BTR_BRANCH_DIR)/configure -C $(BTR_BUILD_ARGS) \
+       ) >$@ 2>&1
 
 $(BTR_BUILD_DIR):
        mkdir -p $@