Change default build revisions dir and make it configurable

This commit is contained in:
T. Joseph Carter 2015-02-18 22:45:23 -08:00
parent 3f75551af9
commit 94275bac9a
3 changed files with 11 additions and 2 deletions

View File

@ -47,9 +47,11 @@ build_summary_log() {
}
build_should_skip() {
build_revision_file="$WORKDIR/build_revisions/$1"
[ -z "$SKIP_UNCHANGED" ] && return 1
[ -z "$BUILD_REVISIONS_DIR" ] && BUILD_REVISIONS_DIR="$WORKDIR/build-revisions"
build_revision_file="$BUILD_REVISIONS_DIR/$1"
[ ! -r "$build_revision_file" ] && return 1
read previous_revision < "$build_revision_file"

View File

@ -108,6 +108,10 @@ echo "STRIP = $STRIP"
mkdir -p "$RARCH_DIST_DIR"
if [ -n "$SKIP_UNCHANGED" ]; then
mkdir -p "$BUILD_REVISIONS_DIR"
fi
if [ -n "$1" ]; then
while [ -n "$1" ]; do
"$1"

View File

@ -209,6 +209,9 @@ BUILD_SUMMARY="$WORKDIR/build-summary.log"
# Set this to enable the feature
#SKIP_UNCHANGED=1
# Set this if you don't like the default
#BUILD_REVISIONS_DIR="$WORKDIR/build-revisions"
#USER DEFINES
#------------