Browse Source

CLEAN now defaults to 'none'

Karsten Böddeker 6 years ago
parent
commit
9f5d16bf10
1 changed files with 2 additions and 9 deletions
  1. 2 9
      build.sh

+ 2 - 9
build.sh

@@ -12,7 +12,7 @@
 # AUTOUPDATER = force Autoupdater Branch (stable/testing/experimental/off)
 # BROKEN      = 0 (default) or 1, build the untested hardware model firmwares, too
 # BUILD_TS    = build timestamp (format: %Y-%m-%d %H:%M:%S)
-# CLEAN       = 'dirclean' to perform "make dirclean" before build or 'clean' to perform "make clean" (BRANCH==stable/testing) or 'none' (BRANCH==experimental)
+# CLEAN       = 'dirclean' to perform "make dirclean" before build or 'clean' to perform "make clean" (default: 'none')
 # KEY_DIR     = specify directory for gluon-opkg-key
 # MAKEJOBS    = number of compiler processes running in parallel (default: number of CPUs/Cores)
 # PRIORITY    = determines the number of day a rollout phase should last at most
@@ -61,14 +61,7 @@ if [ -n "${BROKEN}" ]; then
 	fi
 fi
 [ -n "${BUILD_TS}" ] || BUILD_TS=$(date +"%Y-%m-%d %H:%M:%S")
-
-if [ -z "${CLEAN}" ]; then
-	if [ "${BRANCH}" == "experimental" ]; then
-		CLEAN="none"
-	else
-		CLEAN="clean"
-	fi
-fi
+[ -n "${CLEAN}" ] || CLEAN="none"
 
 if [ -n "${KEY_DIR}" ]; then
 	KEY_DIR=$(readlink -f "${KEY_DIR}")