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>

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/scripts/Makefile
          +++ new/usr/src/tools/scripts/Makefile
↓ open down ↓ 66 lines elided ↑ open up ↑
  67   67          git-pbchk \
  68   68          hdrchk \
  69   69          hg-active \
  70   70          mapfilechk \
  71   71          validate_pkg \
  72   72          wsdiff
  73   73  
  74   74  SCRIPTLINKS= \
  75   75          git-nits
  76   76  
  77      -MAN1FILES= \
  78      -        Install.1 \
  79      -        bldenv.1 \
  80      -        bringovercheck.1 \
  81      -        cddlchk.1 \
  82      -        checkpaths.1 \
  83      -        check_rtime.1 \
  84      -        cstyle.1 \
  85      -        find_elf.1 \
  86      -        flg.flp.1 \
  87      -        git-pbchk.1 \
  88      -        hdrchk.1 \
  89      -        interface_check.1 \
  90      -        interface_cmp.1 \
  91      -        hgsetup.1 \
  92      -        jstyle.1 \
  93      -        mapfilechk.1 \
  94      -        nightly.1 \
  95      -        onu.1 \
  96      -        sccscheck.1 \
  97      -        webrev.1 \
  98      -        which_scm.1 \
  99      -        ws.1 \
 100      -        wsdiff.1 \
 101      -        xref.1
       77 +MAN1ONBLDFILES= \
       78 +        Install.1onbld \
       79 +        bldenv.1onbld \
       80 +        bringovercheck.1onbld \
       81 +        cddlchk.1onbld \
       82 +        checkpaths.1onbld \
       83 +        check_rtime.1onbld \
       84 +        cstyle.1onbld \
       85 +        find_elf.1onbld \
       86 +        flg.flp.1onbld \
       87 +        git-pbchk.1onbld \
       88 +        hdrchk.1onbld \
       89 +        interface_check.1onbld \
       90 +        interface_cmp.1onbld \
       91 +        hgsetup.1onbld \
       92 +        jstyle.1onbld \
       93 +        mapfilechk.1onbld \
       94 +        nightly.1onbld \
       95 +        onu.1onbld \
       96 +        sccscheck.1onbld \
       97 +        webrev.1onbld \
       98 +        which_scm.1onbld \
       99 +        ws.1onbld \
      100 +        wsdiff.1onbld \
      101 +        xref.1onbld
 102  102  
 103      -MAN1LINKS= \
 104      -        git-nits.1
      103 +MAN1ONBLDLINKS= \
      104 +        git-nits.1onbld
 105  105  
 106  106  MAKEFILES= \
 107  107          xref.mk
 108  108  
 109  109  ETCFILES= \
 110  110          hgstyle \
 111  111          its.conf \
 112  112          its.reg
 113  113  
 114  114  EXCEPTFILES= \
 115  115          check_rtime \
 116  116          interface_check \
 117  117          interface_cmp
 118  118  
 119      -CLEANFILES = $(SHFILES) $(PERLFILES) $(PYFILES) bldenv.1
      119 +CLEANFILES = $(SHFILES) $(PERLFILES) $(PYFILES) bldenv.1onbld
 120  120  
 121  121  include ../Makefile.tools
 122  122  
 123  123  ROOTONBLDSCRIPTLINKS = $(SCRIPTLINKS:%=$(ROOTONBLDBIN)/%)
 124      -ROOTONBLDMAN1LINKS = $(MAN1LINKS:%=$(ROOTONBLDMAN1)/%)
      124 +ROOTONBLDMAN1ONBLDLINKS = $(MAN1ONBLDLINKS:%=$(ROOTONBLDMAN1ONBLD)/%)
 125  125  
 126      -$(ROOTONBLDETCFILES)    := FILEMODE=    644
 127      -$(ROOTONBLDEXCEPTFILES) := FILEMODE=    644
 128      -$(ROOTONBLDPERLMODULES) := FILEMODE=    644
 129      -$(ROOTONBLDMAKEFILES)   := FILEMODE=    644
 130      -$(ROOTONBLDMAN1FILES)   := FILEMODE=    644
      126 +$(ROOTONBLDETCFILES)            := FILEMODE=    644
      127 +$(ROOTONBLDEXCEPTFILES)         := FILEMODE=    644
      128 +$(ROOTONBLDPERLMODULES)         := FILEMODE=    644
      129 +$(ROOTONBLDMAKEFILES)           := FILEMODE=    644
      130 +$(ROOTONBLDMAN1ONBLDFILES)      := FILEMODE=    644
 131  131  
 132  132  .KEEP_STATE:
 133  133  
 134  134  all:    $(SHFILES) $(PERLFILES) $(PERLMODULES) $(PYFILES) \
 135      -        $(MAN1FILES) $(MAKEFILES)
      135 +        $(MAN1ONBLDFILES) $(MAKEFILES)
 136  136  
 137  137  $(ROOTONBLDBIN)/git-nits:
 138  138          $(RM) $(ROOTONBLDBIN)/git-nits
 139  139          $(SYMLINK) git-pbchk $(ROOTONBLDBIN)/git-nits
 140  140  
 141      -$(ROOTONBLDMAN1)/git-nits.1:
 142      -        $(RM) $(ROOTONBLDMAN1)/git-nits.1
 143      -        $(SYMLINK) git-pbchk.1 $(ROOTONBLDMAN1)/git-nits.1
      141 +$(ROOTONBLDMAN1ONBLD)/git-nits.1onbld:
      142 +        $(RM) $(ROOTONBLDMAN1ONBLD)/git-nits.1onbld
      143 +        $(SYMLINK) git-pbchk.1onbld $(ROOTONBLDMAN1ONBLD)/git-nits.1onbld
 144  144  
 145      -install: all .WAIT $(ROOTONBLDSHFILES) $(ROOTONBLDPERLFILES)    \
 146      -                $(ROOTONBLDPERLMODULES) $(ROOTONBLDPYFILES)     \
 147      -                $(ROOTONBLDSCRIPTLINKS) $(ROOTONBLDMAN1FILES)   \
 148      -                $(ROOTONBLDMAKEFILES) $(ROOTONBLDETCFILES)      \
 149      -                $(ROOTONBLDEXCEPTFILES) $(ROOTONBLDMAN1LINKS)
      145 +install: all .WAIT $(ROOTONBLDSHFILES) $(ROOTONBLDPERLFILES)            \
      146 +                $(ROOTONBLDPERLMODULES) $(ROOTONBLDPYFILES)             \
      147 +                $(ROOTONBLDSCRIPTLINKS) $(ROOTONBLDMAN1ONBLDFILES)      \
      148 +                $(ROOTONBLDMAKEFILES) $(ROOTONBLDETCFILES)              \
      149 +                $(ROOTONBLDEXCEPTFILES) $(ROOTONBLDMAN1ONBLDLINKS)
 150  150  
 151  151  clean:
 152  152          $(RM) $(CLEANFILES)
 153  153  
 154  154  bldenv: bldenv.sh stdenv.sh
 155  155          $(RM) "$@"
 156  156          sed -e '/# STDENV_START/ r stdenv.sh' bldenv.sh > "$@"
 157  157          # Check for shell lint and fail if we hit warnings
 158  158          shlintout="$$( /usr/bin/ksh93 -n "$@" 2>&1 )" ; \
 159  159                  [[ "$${shlintout}" != "" ]] && \
 160  160                  { print -r -- "$${shlintout}" ; false ; } || true
 161  161          $(CHMOD) +x "$@" 
 162  162  
 163      -bldenv.1: bldenv
      163 +bldenv.1onbld: bldenv
 164  164          $(RM) "$@"
 165  165          (set +o errexit ; ksh93 $? --nroff ; true) 2>&1 | \
 166      -        sed 's/\.DS/.nf/g;s/\.DE/.fi/' > "$@"
      166 +        sed -e 's/\.DS/.nf/g;s/\.DE/.fi/' \
      167 +        -e 's/\.TH BLDENV 1/.TH BLDENV 1ONBLD/' \
      168 +        -e 's/(1)/(1ONBLD)/' > "$@"
 167  169  
 168  170  nightly: nightly.sh stdenv.sh
 169  171          $(RM) "$@"
 170  172          sed -e '/# STDENV_START/ r stdenv.sh' nightly.sh > nightly
 171  173          $(CHMOD) +x "$@" 
 172  174  
 173  175  include ../Makefile.targ
 174  176  
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX