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

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/scripts/Makefile
          +++ new/usr/src/tools/scripts/Makefile
↓ open down ↓ 14 lines elided ↑ open up ↑
  15   15  # If applicable, add the following below this CDDL HEADER, with the
  16   16  # fields enclosed by brackets "[]" replaced with your own identifying
  17   17  # information: Portions Copyright [yyyy] [name of copyright owner]
  18   18  #
  19   19  # CDDL HEADER END
  20   20  #
  21   21  #
  22   22  # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
  23   23  #
  24   24  # Copyright 2010, Richard Lowe
       25 +#
       26 +# Copyright 2018 Joyent, Inc.
  25   27  
  26   28  SHELL=/usr/bin/ksh93
  27   29  
  28   30  SHFILES= \
  29   31          Install \
  30   32          bldenv \
  31   33          build_cscope \
  32   34          bringovercheck \
  33   35          checkpaths \
  34   36          cstyle \
↓ open down ↓ 72 lines elided ↑ open up ↑
 107  109          its.conf \
 108  110          its.reg
 109  111  
 110  112  EXCEPTFILES= \
 111  113          check_rtime \
 112  114          interface_check \
 113  115          interface_cmp
 114  116  
 115  117  CLEANFILES = $(SHFILES) $(PERLFILES) $(PYFILES) bldenv.1onbld onu.sh
 116  118  
 117      -onu.sh: onu.sh.in
 118      -        $(SED) -e "s:@PYTHON_VERSION@:$(PYTHON_VERSION):g" < onu.sh.in > $@
 119      -
 120  119  include ../Makefile.tools
 121  120  
 122  121  ROOTONBLDSCRIPTLINKS = $(SCRIPTLINKS:%=$(ROOTONBLDBIN)/%)
 123  122  ROOTONBLDMAN1ONBLDLINKS = $(MAN1ONBLDLINKS:%=$(ROOTONBLDMAN1ONBLD)/%)
 124  123  
 125  124  $(ROOTONBLDETCFILES)            := FILEMODE=    644
 126  125  $(ROOTONBLDEXCEPTFILES)         := FILEMODE=    644
 127  126  $(ROOTONBLDPERLMODULES)         := FILEMODE=    644
 128  127  $(ROOTONBLDMAKEFILES)           := FILEMODE=    644
 129  128  $(ROOTONBLDMAN1ONBLDFILES)      := FILEMODE=    644
 130  129  
 131  130  .KEEP_STATE:
 132  131  
 133  132  all:    $(SHFILES) $(PERLFILES) $(PERLMODULES) $(PYFILES) \
 134  133          $(MAN1ONBLDFILES) $(MAKEFILES)
 135  134  
      135 +onu.sh: onu.sh.in
      136 +        $(SED) -e "s:@PYTHON_VERSION@:$(PYTHON_VERSION):g" < onu.sh.in > $@
      137 +
 136  138  $(ROOTONBLDBIN)/git-nits:
 137  139          $(RM) $(ROOTONBLDBIN)/git-nits
 138  140          $(SYMLINK) git-pbchk $(ROOTONBLDBIN)/git-nits
 139  141  
 140  142  $(ROOTONBLDMAN1ONBLD)/git-nits.1onbld:
 141  143          $(RM) $(ROOTONBLDMAN1ONBLD)/git-nits.1onbld
 142  144          $(SYMLINK) git-pbchk.1onbld $(ROOTONBLDMAN1ONBLD)/git-nits.1onbld
 143  145  
 144  146  install: all .WAIT $(ROOTONBLDSHFILES) $(ROOTONBLDPERLFILES)            \
 145  147                  $(ROOTONBLDPERLMODULES) $(ROOTONBLDPYFILES)             \
↓ open down ↓ 10 lines elided ↑ open up ↑
 156  158          # Check for shell lint and fail if we hit warnings
 157  159          shlintout="$$( /usr/bin/ksh93 -n "$@" 2>&1 )" ; \
 158  160                  [[ "$${shlintout}" != "" ]] && \
 159  161                  { print -r -- "$${shlintout}" ; false ; } || true
 160  162          $(CHMOD) +x "$@"
 161  163  
 162  164  bldenv.1onbld: bldenv
 163  165          $(RM) "$@"
 164  166          (set +o errexit ; ksh93 $? --nroff ; true) 2>&1 | \
 165  167          sed -e 's/\.DS/.nf/g;s/\.DE/.fi/' \
 166      -        -e 's/\.TH BLDENV 1/.TH BLDENV 1ONBLD/' \
      168 +        -e 's/\.TH BLDENV 1/.TH BLDENV 1ONBLD "September 4, 2018"/' \
      169 +        -e 's/.OP \([a-z]\) - flag -/.OP \\-\1/g' \
 167  170          -e 's/(1)/(1ONBLD)/' > "$@"
 168  171  
 169  172  nightly: nightly.sh stdenv.sh
 170  173          $(RM) "$@"
 171  174          sed -e '/# STDENV_START/ r stdenv.sh' nightly.sh > nightly
 172  175          $(CHMOD) +x "$@"
 173  176  
      177 +#
      178 +# Not run by default: bootstrap...
      179 +check:
      180 +        $(ROOTONBLDBINMACH)/mandoc -Tlint -Wwarning $(MAN1ONBLDFILES)
      181 +
 174  182  include ../Makefile.targ
 175  183  
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX