Skip to content

Commit

Permalink
update: hardcode release during build time
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Jun 29, 2021
1 parent 0d56741 commit a1ad3f6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Makefile.inc
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
upgrade: all install clean

UPDATE_RELEASE?= 21.1.7
5 changes: 5 additions & 0 deletions update/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,9 @@ PREFIX?=${LOCALBASE}
BINDIR= ${PREFIX}/sbin
MANDIR= ${PREFIX}/man/man

CLEANFILES= opnsense-update.sh

opnsense-update.sh: opnsense-update.sh.in
sed -e 's|%%RELEASE%%|${UPDATE_RELEASE}|g' ${.ALLSRC} > ${.TARGET}

.include <bsd.prog.mk>
2 changes: 1 addition & 1 deletion update/opnsense-update.sh → update/opnsense-update.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ KERNELDIR="/boot/kernel"
TEE="/usr/bin/tee -a"
PRODUCT="OPNsense"
PKG="pkg-static"
RELEASE="21.1.7"
RELEASE="%%RELEASE%%"

PENDINGDIR="${WORKPREFIX}/.sets.pending"
PIPEFILE="${WORKPREFIX}/.upgrade.pipe"
Expand Down

0 comments on commit a1ad3f6

Please sign in to comment.