Scripts: make "revision" target work on macOS
This commit is contained in:
parent
706841a629
commit
b3ba075b04
|
@ -1,4 +1,4 @@
|
|||
# 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
|
||||
|
@ -345,7 +345,7 @@ sweep: check
|
|||
xargs -0 -n1 ${SCRIPTSDIR}/cleanfile
|
||||
|
||||
revision:
|
||||
@${SCRIPTSDIR}/revbump.sh ${.CURDIR}
|
||||
@MAKE=${MAKE} ${SCRIPTSDIR}/revbump.sh ${.CURDIR}
|
||||
|
||||
STYLEDIRS?= src/etc/inc src/opnsense
|
||||
|
||||
|
|
|
@ -8,8 +8,8 @@ if [ -z "${DIR}" ]; then
|
|||
DIR=.
|
||||
fi
|
||||
|
||||
REV=$(make -C ${DIR} -v PLUGIN_REVISION)
|
||||
REV=$(expr ${REV} \+ 1)
|
||||
REV=$(${MAKE} -C ${DIR} -v PLUGIN_REVISION)
|
||||
REV=$((REV + 1))
|
||||
|
||||
grep -v ^PLUGIN_REVISION ${DIR}/Makefile > ${DIR}/Makefile.tmp
|
||||
sed -e "s/^\(PLUGIN_VERSION.*\)/\1%PLUGIN_REVISION= ${REV}/g" \
|
||||
|
|
Loading…
Reference in New Issue