Selaa lähdekoodia

CLEAN now defaults to 'none'

Karsten Böddeker 6 vuotta sitten
vanhempi
commit
9f5d16bf10
1 muutettua tiedostoa jossa 2 lisäystä ja 9 poistoa
  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}")