Print this page
9803 pbchk could use a -c option
9825 pbchk -b option should be -p

@@ -20,10 +20,12 @@
 #
 #
 # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
 #
 # Copyright 2010, Richard Lowe
+#
+# Copyright 2018 Joyent, Inc.
 
 SHELL=/usr/bin/ksh93
 
 SHFILES= \
         Install \

@@ -112,13 +114,10 @@
         interface_check \
         interface_cmp
 
 CLEANFILES = $(SHFILES) $(PERLFILES) $(PYFILES) bldenv.1onbld onu.sh
 
-onu.sh: onu.sh.in
-        $(SED) -e "s:@PYTHON_VERSION@:$(PYTHON_VERSION):g" < onu.sh.in > $@
-
 include ../Makefile.tools
 
 ROOTONBLDSCRIPTLINKS = $(SCRIPTLINKS:%=$(ROOTONBLDBIN)/%)
 ROOTONBLDMAN1ONBLDLINKS = $(MAN1ONBLDLINKS:%=$(ROOTONBLDMAN1ONBLD)/%)
 

@@ -131,10 +130,13 @@
 .KEEP_STATE:
 
 all:    $(SHFILES) $(PERLFILES) $(PERLMODULES) $(PYFILES) \
         $(MAN1ONBLDFILES) $(MAKEFILES)
 
+onu.sh: onu.sh.in
+        $(SED) -e "s:@PYTHON_VERSION@:$(PYTHON_VERSION):g" < onu.sh.in > $@
+
 $(ROOTONBLDBIN)/git-nits:
         $(RM) $(ROOTONBLDBIN)/git-nits
         $(SYMLINK) git-pbchk $(ROOTONBLDBIN)/git-nits
 
 $(ROOTONBLDMAN1ONBLD)/git-nits.1onbld:

@@ -161,15 +163,21 @@
 
 bldenv.1onbld: bldenv
         $(RM) "$@"
         (set +o errexit ; ksh93 $? --nroff ; true) 2>&1 | \
         sed -e 's/\.DS/.nf/g;s/\.DE/.fi/' \
-        -e 's/\.TH BLDENV 1/.TH BLDENV 1ONBLD/' \
+        -e 's/\.TH BLDENV 1/.TH BLDENV 1ONBLD "September 4, 2018"/' \
+        -e 's/.OP \([a-z]\) - flag -/.OP \\-\1/g' \
         -e 's/(1)/(1ONBLD)/' > "$@"
 
 nightly: nightly.sh stdenv.sh
         $(RM) "$@"
         sed -e '/# STDENV_START/ r stdenv.sh' nightly.sh > nightly
         $(CHMOD) +x "$@"
 
+#
+# Not run by default: bootstrap...
+check:
+        $(ROOTONBLDBINMACH)/mandoc -Tlint -Wwarning $(MAN1ONBLDFILES)
+
 include ../Makefile.targ