Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2018-06-27 22:15:15 +0300
committernachoparker <nacho@ownyourbits.com>2018-06-28 18:20:54 +0300
commit16227491a7b1033590e534d6166f5b3bf54812d9 (patch)
treee1d46ddc5c182a213564379b757cddd62fcfd13a
parentfbc0d465e9aae186b6e65aa195f6ab4bd08110b0 (diff)
build: clean cache by default
-rwxr-xr-xbatch.sh2
-rwxr-xr-xbuild-SD-armbian.sh11
-rwxr-xr-xbuild-SD-rpi.sh2
-rw-r--r--buildlib.sh2
-rw-r--r--etc/ncp-config.d/no-ip.sh1
5 files changed, 12 insertions, 6 deletions
diff --git a/batch.sh b/batch.sh
index 4ccd83e8..bfb923ee 100755
--- a/batch.sh
+++ b/batch.sh
@@ -21,7 +21,7 @@ source buildlib.sh # initializes $IMGNAME
}
# Raspbian
-CLEAN=1 ./build-SD-rpi.sh "$IP"
+./build-SD-rpi.sh "$IP"
#./build-SD-berryboot.sh "$IMG" #TODO
# Armbian
diff --git a/build-SD-armbian.sh b/build-SD-armbian.sh
index 5376467e..3ee49a06 100755
--- a/build-SD-armbian.sh
+++ b/build-SD-armbian.sh
@@ -8,7 +8,7 @@
# Usage: ./build-SD-armbian.sh <board_code> [<board_name>]
#
-#CLEAN=1 # Pass this envvar to clean download cache
+#CLEAN=0 # Pass this envvar to avoid cleaning download cache
BOARD="$1"
BNAME="${2:-$1}"
@@ -39,9 +39,13 @@ KERNEL_ONLY=no
KERNEL_CONFIGURE=no
BUILD_DESKTOP=no
USE_CCACHE=yes
-# CLEAN_LEVEL="" # study this: it is much faster, but generated images might be broken (#548)
-# NO_APT_CACHER=no # this will also improve build times, but doesn't seem very reliable
EOF
+[[ "$CLEAN" == "0" ]] && {
+ cat >> armbian/config-docker-guest.conf <<EOF
+ CLEAN_LEVEL="" # study this: it is much faster, but generated images might be broken (#548)
+ # NO_APT_CACHER=no # this will also improve build times, but doesn't seem very reliable
+EOF
+}
# board specific parameters
CONF="config-$BOARD".conf
@@ -49,6 +53,7 @@ CONF="config-$BOARD".conf
# build
armbian/compile.sh docker
+rm armbian/config-docker-guest.conf
# pack image
mv armbian/output/images/Armbian*.img "$IMG"
diff --git a/build-SD-rpi.sh b/build-SD-rpi.sh
index 9852c45f..afc5cf6c 100755
--- a/build-SD-rpi.sh
+++ b/build-SD-rpi.sh
@@ -13,7 +13,7 @@ source buildlib.sh
IP=${1:-192.168.0.145} # For QEMU automated testing (optional)
SIZE=3G # Raspbian image size
-#CLEAN=1 # Pass this envvar to clean download cache
+#CLEAN=0 # Pass this envvar to skip cleaning download cache
IMG="NextCloudPi_RPi_$( date "+%m-%d-%y" ).img"
##############################################################################
diff --git a/buildlib.sh b/buildlib.sh
index 7e31b6c3..4346877f 100644
--- a/buildlib.sh
+++ b/buildlib.sh
@@ -118,7 +118,7 @@ $CFG_STEP
function prepare_dirs()
{
- [[ "$CLEAN" != "" ]] && rm -rf cache
+ [[ "$CLEAN" == "0" ]] || rm -rf cache
rm -rf tmp
mkdir -p tmp output cache
}
diff --git a/etc/ncp-config.d/no-ip.sh b/etc/ncp-config.d/no-ip.sh
index 509b96a5..58b6a444 100644
--- a/etc/ncp-config.d/no-ip.sh
+++ b/etc/ncp-config.d/no-ip.sh
@@ -103,6 +103,7 @@ configure()
cleanup()
{
# this uninstalls udiskie, commented out
+ # udiskie with these dependencies fixed in Buster
# apt-get purge -y make gcc libc-dev
:
}