scripts: add refresh target, same same but different

This commit is contained in:
Franco Fichtner 2017-09-26 08:18:26 +02:00
parent b212cc62dd
commit 8b60290ebf
3 changed files with 19 additions and 3 deletions

View file

@ -27,7 +27,7 @@ STEPS= arm base boot chroot clean core distfiles dvd info \
kernel nano plugins ports prefetch print rebase \
release rename serial sign skim test update verify \
vga vm xtools
SCRIPTS= batch nightly pkg_fingerprint pkg_sign
SCRIPTS= batch nightly refresh pkg_fingerprint pkg_sign
.PHONY: ${STEPS}
PAGER?= less

View file

@ -376,10 +376,17 @@ and LibreSSL packages are both required they can be batch-built using:
# make batch-<step>[,<option>[,...]]
Last but not least, a fully contained nightly build for the system
is invoked using:
A fully contained nightly build for the system is invoked using:
# make nightly
Nightly builds are the only builds that write and archive logs under
/tmp/logs and /tmp/logs/latest points to the last nightly build run.
Last but not least, a refresh of OPNsense core and plugins on package
sets is invoked using:
# make refresh
It will flush all previous packages except for ports, rebuild core and
plugins and sign the sets if enabled. It is used to issue hotfixes.

9
scripts/refresh.sh Executable file
View file

@ -0,0 +1,9 @@
#!/bin/sh
# refresh plugins and core in packages
for FLAVOUR in OpenSSL LibreSSL; do
make clean-obj,plugins,core packages FLAVOUR=${FLAVOUR}
done
make clean-obj