Print this page
6205 onbld manuals should be declared as 1onbld
Reviewed by: Dan McDonald <danmcd@omniti.com>
Reviewed by: Josef Sipek <jeffpc@josefsipek.net>

@@ -72,38 +72,38 @@
         wsdiff
 
 SCRIPTLINKS= \
         git-nits
 
-MAN1FILES= \
-        Install.1 \
-        bldenv.1 \
-        bringovercheck.1 \
-        cddlchk.1 \
-        checkpaths.1 \
-        check_rtime.1 \
-        cstyle.1 \
-        find_elf.1 \
-        flg.flp.1 \
-        git-pbchk.1 \
-        hdrchk.1 \
-        interface_check.1 \
-        interface_cmp.1 \
-        hgsetup.1 \
-        jstyle.1 \
-        mapfilechk.1 \
-        nightly.1 \
-        onu.1 \
-        sccscheck.1 \
-        webrev.1 \
-        which_scm.1 \
-        ws.1 \
-        wsdiff.1 \
-        xref.1
+MAN1ONBLDFILES= \
+        Install.1onbld \
+        bldenv.1onbld \
+        bringovercheck.1onbld \
+        cddlchk.1onbld \
+        checkpaths.1onbld \
+        check_rtime.1onbld \
+        cstyle.1onbld \
+        find_elf.1onbld \
+        flg.flp.1onbld \
+        git-pbchk.1onbld \
+        hdrchk.1onbld \
+        interface_check.1onbld \
+        interface_cmp.1onbld \
+        hgsetup.1onbld \
+        jstyle.1onbld \
+        mapfilechk.1onbld \
+        nightly.1onbld \
+        onu.1onbld \
+        sccscheck.1onbld \
+        webrev.1onbld \
+        which_scm.1onbld \
+        ws.1onbld \
+        wsdiff.1onbld \
+        xref.1onbld
 
-MAN1LINKS= \
-        git-nits.1
+MAN1ONBLDLINKS= \
+        git-nits.1onbld
 
 MAKEFILES= \
         xref.mk
 
 ETCFILES= \

@@ -114,41 +114,41 @@
 EXCEPTFILES= \
         check_rtime \
         interface_check \
         interface_cmp
 
-CLEANFILES = $(SHFILES) $(PERLFILES) $(PYFILES) bldenv.1
+CLEANFILES = $(SHFILES) $(PERLFILES) $(PYFILES) bldenv.1onbld
 
 include ../Makefile.tools
 
 ROOTONBLDSCRIPTLINKS = $(SCRIPTLINKS:%=$(ROOTONBLDBIN)/%)
-ROOTONBLDMAN1LINKS = $(MAN1LINKS:%=$(ROOTONBLDMAN1)/%)
+ROOTONBLDMAN1ONBLDLINKS = $(MAN1ONBLDLINKS:%=$(ROOTONBLDMAN1ONBLD)/%)
 
 $(ROOTONBLDETCFILES)    := FILEMODE=    644
 $(ROOTONBLDEXCEPTFILES) := FILEMODE=    644
 $(ROOTONBLDPERLMODULES) := FILEMODE=    644
 $(ROOTONBLDMAKEFILES)   := FILEMODE=    644
-$(ROOTONBLDMAN1FILES)   := FILEMODE=    644
+$(ROOTONBLDMAN1ONBLDFILES)      := FILEMODE=    644
 
 .KEEP_STATE:
 
 all:    $(SHFILES) $(PERLFILES) $(PERLMODULES) $(PYFILES) \
-        $(MAN1FILES) $(MAKEFILES)
+        $(MAN1ONBLDFILES) $(MAKEFILES)
 
 $(ROOTONBLDBIN)/git-nits:
         $(RM) $(ROOTONBLDBIN)/git-nits
         $(SYMLINK) git-pbchk $(ROOTONBLDBIN)/git-nits
 
-$(ROOTONBLDMAN1)/git-nits.1:
-        $(RM) $(ROOTONBLDMAN1)/git-nits.1
-        $(SYMLINK) git-pbchk.1 $(ROOTONBLDMAN1)/git-nits.1
+$(ROOTONBLDMAN1ONBLD)/git-nits.1onbld:
+        $(RM) $(ROOTONBLDMAN1ONBLD)/git-nits.1onbld
+        $(SYMLINK) git-pbchk.1onbld $(ROOTONBLDMAN1ONBLD)/git-nits.1onbld
 
 install: all .WAIT $(ROOTONBLDSHFILES) $(ROOTONBLDPERLFILES)    \
                 $(ROOTONBLDPERLMODULES) $(ROOTONBLDPYFILES)     \
-                $(ROOTONBLDSCRIPTLINKS) $(ROOTONBLDMAN1FILES)   \
+                $(ROOTONBLDSCRIPTLINKS) $(ROOTONBLDMAN1ONBLDFILES)      \
                 $(ROOTONBLDMAKEFILES) $(ROOTONBLDETCFILES)      \
-                $(ROOTONBLDEXCEPTFILES) $(ROOTONBLDMAN1LINKS)
+                $(ROOTONBLDEXCEPTFILES) $(ROOTONBLDMAN1ONBLDLINKS)
 
 clean:
         $(RM) $(CLEANFILES)
 
 bldenv: bldenv.sh stdenv.sh

@@ -158,14 +158,16 @@
         shlintout="$$( /usr/bin/ksh93 -n "$@" 2>&1 )" ; \
                 [[ "$${shlintout}" != "" ]] && \
                 { print -r -- "$${shlintout}" ; false ; } || true
         $(CHMOD) +x "$@" 
 
-bldenv.1: bldenv
+bldenv.1onbld: bldenv
         $(RM) "$@"
         (set +o errexit ; ksh93 $? --nroff ; true) 2>&1 | \
-        sed 's/\.DS/.nf/g;s/\.DE/.fi/' > "$@"
+        sed -e 's/\.DS/.nf/g;s/\.DE/.fi/' \
+        -e 's/\.TH BLDENV 1/.TH BLDENV 1ONBLD/' \
+        -e 's/(1)/(1ONBLD)/' > "$@"
 
 nightly: nightly.sh stdenv.sh
         $(RM) "$@"
         sed -e '/# STDENV_START/ r stdenv.sh' nightly.sh > nightly
         $(CHMOD) +x "$@"