;;
-b|--build)
case "$2" in
- php|pecl)
+ *)
BUILD_RULES="$2"
;;
esac
export CONFIG_REPORT="btr+config-$BUILD-$DATE"
export BUILD_REPORT="btr+build-$BUILD-$DATE"
export TEST_REPORT="btr+tests-$BUILD-$DATE"
- export LAST_REPORT=$(basename $(ls -t "$BTRDIR/btr+tests-$BUILD"* | tail -n1))
+ export LAST_REPORT=$(basename $(ls -t "$BTRDIR/btr+tests-$BUILD"* 2>/dev/null | tail -n1) 2>/dev/null)
export REPORT=""
}
git pull -q
$(CLEAN_DIR):
- git clone $(SOURCE_URL) $(CLEAN_DIR)
+ git clone -q $(SOURCE_URL) $(CLEAN_DIR)
$(BRANCH_DIR): $(CLEAN_DIR)
git-new-workdir $(CLEAN_DIR) $(BRANCH_DIR) $(BRANCH)