Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102852903
D35854.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D35854.diff
View Options
diff --git a/usr.sbin/etcupdate/etcupdate.8 b/usr.sbin/etcupdate/etcupdate.8
--- a/usr.sbin/etcupdate/etcupdate.8
+++ b/usr.sbin/etcupdate/etcupdate.8
@@ -25,7 +25,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd April 20, 2021
+.Dd August 9, 2022
.Dt ETCUPDATE 8
.Os
.Sh NAME
@@ -41,6 +41,7 @@
.Op Fl I Ar patterns
.Op Fl L Ar logfile
.Op Fl M Ar options
+.Op Fl m Ar make
.Nm
.Cm build
.Op Fl B
@@ -48,6 +49,7 @@
.Op Fl s Ar source
.Op Fl L Ar logfile
.Op Fl M Ar options
+.Op Fl m Ar make
.Ar tarball
.Nm
.Cm diff
@@ -63,6 +65,7 @@
.Op Fl D Ar destdir
.Op Fl L Ar logfile
.Op Fl M Ar options
+.Op Fl m Ar make
.Nm
.Cm resolve
.Op Fl p
@@ -489,6 +492,14 @@
or
.Dv TARGET_ARCH
variables for a cross-build.
+.It Fl m Ar make
+Use
+.Ar make
+as the
+.Xr make 1
+binary when building a
+.Dq current
+tree.
.It Fl n
Enable
.Dq dry-run
@@ -593,6 +604,14 @@
Specify an alternate path for the log file similar to the
.Fl L
option.
+.It Ev MAKE_CMD
+Specify the
+.Xr make 1
+binary when building a
+.Dq current
+tree similar to the
+.Fl m
+option.
.It Ev MAKE_OPTIONS
Pass additional options to
.Xr make 1
diff --git a/usr.sbin/etcupdate/etcupdate.sh b/usr.sbin/etcupdate/etcupdate.sh
--- a/usr.sbin/etcupdate/etcupdate.sh
+++ b/usr.sbin/etcupdate/etcupdate.sh
@@ -64,12 +64,12 @@
cat <<EOF
usage: etcupdate [-npBF] [-d workdir] [-r | -s source | -t tarball]
[-A patterns] [-D destdir] [-I patterns] [-L logfile]
- [-M options]
+ [-M options] [-m make]
etcupdate build [-B] [-d workdir] [-s source] [-L logfile] [-M options]
- <tarball>
+ [-m make] <tarball>
etcupdate diff [-d workdir] [-D destdir] [-I patterns] [-L logfile]
etcupdate extract [-B] [-d workdir] [-s source | -t tarball]
- [-D destdir] [-L logfile] [-M options]
+ [-D destdir] [-L logfile] [-M options] [-m make]
etcupdate resolve [-p] [-d workdir] [-D destdir] [-L logfile]
etcupdate revert [-d workdir] [-D destdir] [-L logfile] file ...
etcupdate status [-d workdir] [-D destdir]
@@ -186,7 +186,7 @@
(
local destdir dir file make
- make="make $MAKE_OPTIONS -DNO_FILEMON"
+ make="$MAKE_CMD $MAKE_OPTIONS -DNO_FILEMON"
log "Building tree at $1 with $make"
@@ -1707,6 +1707,9 @@
# Files to ignore and never update during a merge.
IGNORE_FILES=
+# The path to the make binary
+MAKE_CMD=make
+
# Flags to pass to 'make' when building a tree.
MAKE_OPTIONS=
@@ -1719,6 +1722,7 @@
# - FREEBSD_ID
# - IGNORE_FILES
# - LOGFILE
+# - MAKE_CMD
# - MAKE_OPTIONS
# - SRCDIR
# - WORKDIR
@@ -1734,11 +1738,14 @@
ignore=
nobuild=
preworld=
-while getopts "d:nprs:t:A:BD:FI:L:M:" option; do
+while getopts "d:m:nprs:t:A:BD:FI:L:M:" option; do
case "$option" in
d)
WORKDIR=$OPTARG
;;
+ m)
+ MAKE_CMD=$OPTARG
+ ;;
n)
dryrun=YES
;;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 19, 12:32 AM (21 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14707400
Default Alt Text
D35854.diff (2 KB)
Attached To
Mode
D35854: etcupdate: Add a -m flag to change the make binary that's run
Attached
Detach File
Event Timeline
Log In to Comment