build: rename plist files to prefix set name
This commit is contained in:
parent
9fc1c776eb
commit
b072e55797
2
LICENSE
2
LICENSE
|
@ -1,4 +1,4 @@
|
|||
Copyright (c) 2014-2021 Franco Fichtner <franco@opnsense.org>
|
||||
Copyright (c) 2014-2022 Franco Fichtner <franco@opnsense.org>
|
||||
Copyright (c) 2015-2017 The FreeBSD Foundation
|
||||
Copyright (c) 2004-2011 Scott Ullrich <sullrich@gmail.com>
|
||||
All rights reserved.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Copyright (c) 2014-2021 Franco Fichtner <franco@opnsense.org>
|
||||
# Copyright (c) 2014-2022 Franco Fichtner <franco@opnsense.org>
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
|
@ -98,13 +98,13 @@ echo -n ">>> Generating obsolete file list... "
|
|||
sort > ${STAGEDIR}/setdiff.new
|
||||
|
||||
: > ${STAGEDIR}/setdiff.old
|
||||
if [ -f ${CONFIGDIR}/plist.base.${PRODUCT_ARCH} ]; then
|
||||
cp ${CONFIGDIR}/plist.base.${PRODUCT_ARCH} ${STAGEDIR}/setdiff.old
|
||||
if [ -f ${CONFIGDIR}/base.plist.${PRODUCT_ARCH} ]; then
|
||||
cp ${CONFIGDIR}/base.plist.${PRODUCT_ARCH} ${STAGEDIR}/setdiff.old
|
||||
fi
|
||||
|
||||
: > ${STAGEDIR}/setdiff.tmp
|
||||
if [ -f ${CONFIGDIR}/plist.obsolete.${PRODUCT_ARCH} ]; then
|
||||
diff -u ${CONFIGDIR}/plist.obsolete.${PRODUCT_ARCH} \
|
||||
if [ -f ${CONFIGDIR}/base.obsolete.${PRODUCT_ARCH} ]; then
|
||||
diff -u ${CONFIGDIR}/base.obsolete.${PRODUCT_ARCH} \
|
||||
${STAGEDIR}/setdiff.new | grep '^-/' | \
|
||||
cut -b 2- > ${STAGEDIR}/setdiff.tmp
|
||||
fi
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Copyright (c) 2015-2021 Franco Fichtner <franco@opnsense.org>
|
||||
# Copyright (c) 2015-2022 Franco Fichtner <franco@opnsense.org>
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
|
@ -38,7 +38,7 @@ OBSOLETE=/usr/local/opnsense/version/base.obsolete
|
|||
|
||||
tar -tf ${BASESET} | sed -e 's/^\.//g' -e '/\/$/d' | \
|
||||
grep -v -e '\.mtree\.sig$' -e '\.abi_hint$' | \
|
||||
sort > ${CONFIGDIR}/plist.base.${PRODUCT_ARCH}
|
||||
sort > ${CONFIGDIR}/base.plist.${PRODUCT_ARCH}
|
||||
|
||||
tar -C ${STAGEDIR} -xf ${BASESET} .${OBSOLETE}
|
||||
cp ${STAGEDIR}${OBSOLETE} ${CONFIGDIR}/plist.obsolete.${PRODUCT_ARCH}
|
||||
cp ${STAGEDIR}${OBSOLETE} ${CONFIGDIR}/base.obsolete.${PRODUCT_ARCH}
|
||||
|
|
Loading…
Reference in New Issue