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


   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 #
  22 # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
  23 #
  24 # Copyright 2010, Richard Lowe


  25 
  26 SHELL=/usr/bin/ksh93
  27 
  28 SHFILES= \
  29         Install \
  30         bldenv \
  31         build_cscope \
  32         bringovercheck \
  33         checkpaths \
  34         cstyle \
  35         elfcmp \
  36         flg.flp \
  37         genoffsets \
  38         nightly \
  39         onu \
  40         protocmp.terse \
  41         sccscheck \
  42         webrev \
  43         which_scm \
  44         ws \


  97         wsdiff.1onbld \
  98         xref.1onbld
  99 
 100 MAN1ONBLDLINKS= \
 101         git-nits.1onbld
 102 
 103 MAKEFILES= \
 104         xref.mk
 105 
 106 ETCFILES= \
 107         its.conf \
 108         its.reg
 109 
 110 EXCEPTFILES= \
 111         check_rtime \
 112         interface_check \
 113         interface_cmp
 114 
 115 CLEANFILES = $(SHFILES) $(PERLFILES) $(PYFILES) bldenv.1onbld onu.sh
 116 
 117 onu.sh: onu.sh.in
 118         $(SED) -e "s:@PYTHON_VERSION@:$(PYTHON_VERSION):g" < onu.sh.in > $@
 119 
 120 include ../Makefile.tools
 121 
 122 ROOTONBLDSCRIPTLINKS = $(SCRIPTLINKS:%=$(ROOTONBLDBIN)/%)
 123 ROOTONBLDMAN1ONBLDLINKS = $(MAN1ONBLDLINKS:%=$(ROOTONBLDMAN1ONBLD)/%)
 124 
 125 $(ROOTONBLDETCFILES)            := FILEMODE=    644
 126 $(ROOTONBLDEXCEPTFILES)         := FILEMODE=    644
 127 $(ROOTONBLDPERLMODULES)         := FILEMODE=    644
 128 $(ROOTONBLDMAKEFILES)           := FILEMODE=    644
 129 $(ROOTONBLDMAN1ONBLDFILES)      := FILEMODE=    644
 130 
 131 .KEEP_STATE:
 132 
 133 all:    $(SHFILES) $(PERLFILES) $(PERLMODULES) $(PYFILES) \
 134         $(MAN1ONBLDFILES) $(MAKEFILES)
 135 



 136 $(ROOTONBLDBIN)/git-nits:
 137         $(RM) $(ROOTONBLDBIN)/git-nits
 138         $(SYMLINK) git-pbchk $(ROOTONBLDBIN)/git-nits
 139 
 140 $(ROOTONBLDMAN1ONBLD)/git-nits.1onbld:
 141         $(RM) $(ROOTONBLDMAN1ONBLD)/git-nits.1onbld
 142         $(SYMLINK) git-pbchk.1onbld $(ROOTONBLDMAN1ONBLD)/git-nits.1onbld
 143 
 144 install: all .WAIT $(ROOTONBLDSHFILES) $(ROOTONBLDPERLFILES)            \
 145                 $(ROOTONBLDPERLMODULES) $(ROOTONBLDPYFILES)             \
 146                 $(ROOTONBLDSCRIPTLINKS) $(ROOTONBLDMAN1ONBLDFILES)      \
 147                 $(ROOTONBLDMAKEFILES) $(ROOTONBLDETCFILES)              \
 148                 $(ROOTONBLDEXCEPTFILES) $(ROOTONBLDMAN1ONBLDLINKS)
 149 
 150 clean:
 151         $(RM) $(CLEANFILES)
 152 
 153 bldenv: bldenv.sh stdenv.sh
 154         $(RM) "$@"
 155         sed -e '/# STDENV_START/ r stdenv.sh' bldenv.sh > "$@"
 156         # Check for shell lint and fail if we hit warnings
 157         shlintout="$$( /usr/bin/ksh93 -n "$@" 2>&1 )" ; \
 158                 [[ "$${shlintout}" != "" ]] && \
 159                 { print -r -- "$${shlintout}" ; false ; } || true
 160         $(CHMOD) +x "$@"
 161 
 162 bldenv.1onbld: bldenv
 163         $(RM) "$@"
 164         (set +o errexit ; ksh93 $? --nroff ; true) 2>&1 | \
 165         sed -e 's/\.DS/.nf/g;s/\.DE/.fi/' \
 166         -e 's/\.TH BLDENV 1/.TH BLDENV 1ONBLD/' \

 167         -e 's/(1)/(1ONBLD)/' > "$@"
 168 
 169 nightly: nightly.sh stdenv.sh
 170         $(RM) "$@"
 171         sed -e '/# STDENV_START/ r stdenv.sh' nightly.sh > nightly
 172         $(CHMOD) +x "$@"
 173 





 174 include ../Makefile.targ
 175 


   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 #
  22 # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
  23 #
  24 # Copyright 2010, Richard Lowe
  25 #
  26 # Copyright 2018 Joyent, Inc.
  27 
  28 SHELL=/usr/bin/ksh93
  29 
  30 SHFILES= \
  31         Install \
  32         bldenv \
  33         build_cscope \
  34         bringovercheck \
  35         checkpaths \
  36         cstyle \
  37         elfcmp \
  38         flg.flp \
  39         genoffsets \
  40         nightly \
  41         onu \
  42         protocmp.terse \
  43         sccscheck \
  44         webrev \
  45         which_scm \
  46         ws \


  99         wsdiff.1onbld \
 100         xref.1onbld
 101 
 102 MAN1ONBLDLINKS= \
 103         git-nits.1onbld
 104 
 105 MAKEFILES= \
 106         xref.mk
 107 
 108 ETCFILES= \
 109         its.conf \
 110         its.reg
 111 
 112 EXCEPTFILES= \
 113         check_rtime \
 114         interface_check \
 115         interface_cmp
 116 
 117 CLEANFILES = $(SHFILES) $(PERLFILES) $(PYFILES) bldenv.1onbld onu.sh
 118 



 119 include ../Makefile.tools
 120 
 121 ROOTONBLDSCRIPTLINKS = $(SCRIPTLINKS:%=$(ROOTONBLDBIN)/%)
 122 ROOTONBLDMAN1ONBLDLINKS = $(MAN1ONBLDLINKS:%=$(ROOTONBLDMAN1ONBLD)/%)
 123 
 124 $(ROOTONBLDETCFILES)            := FILEMODE=    644
 125 $(ROOTONBLDEXCEPTFILES)         := FILEMODE=    644
 126 $(ROOTONBLDPERLMODULES)         := FILEMODE=    644
 127 $(ROOTONBLDMAKEFILES)           := FILEMODE=    644
 128 $(ROOTONBLDMAN1ONBLDFILES)      := FILEMODE=    644
 129 
 130 .KEEP_STATE:
 131 
 132 all:    $(SHFILES) $(PERLFILES) $(PERLMODULES) $(PYFILES) \
 133         $(MAN1ONBLDFILES) $(MAKEFILES)
 134 
 135 onu.sh: onu.sh.in
 136         $(SED) -e "s:@PYTHON_VERSION@:$(PYTHON_VERSION):g" < onu.sh.in > $@
 137 
 138 $(ROOTONBLDBIN)/git-nits:
 139         $(RM) $(ROOTONBLDBIN)/git-nits
 140         $(SYMLINK) git-pbchk $(ROOTONBLDBIN)/git-nits
 141 
 142 $(ROOTONBLDMAN1ONBLD)/git-nits.1onbld:
 143         $(RM) $(ROOTONBLDMAN1ONBLD)/git-nits.1onbld
 144         $(SYMLINK) git-pbchk.1onbld $(ROOTONBLDMAN1ONBLD)/git-nits.1onbld
 145 
 146 install: all .WAIT $(ROOTONBLDSHFILES) $(ROOTONBLDPERLFILES)            \
 147                 $(ROOTONBLDPERLMODULES) $(ROOTONBLDPYFILES)             \
 148                 $(ROOTONBLDSCRIPTLINKS) $(ROOTONBLDMAN1ONBLDFILES)      \
 149                 $(ROOTONBLDMAKEFILES) $(ROOTONBLDETCFILES)              \
 150                 $(ROOTONBLDEXCEPTFILES) $(ROOTONBLDMAN1ONBLDLINKS)
 151 
 152 clean:
 153         $(RM) $(CLEANFILES)
 154 
 155 bldenv: bldenv.sh stdenv.sh
 156         $(RM) "$@"
 157         sed -e '/# STDENV_START/ r stdenv.sh' bldenv.sh > "$@"
 158         # Check for shell lint and fail if we hit warnings
 159         shlintout="$$( /usr/bin/ksh93 -n "$@" 2>&1 )" ; \
 160                 [[ "$${shlintout}" != "" ]] && \
 161                 { print -r -- "$${shlintout}" ; false ; } || true
 162         $(CHMOD) +x "$@"
 163 
 164 bldenv.1onbld: bldenv
 165         $(RM) "$@"
 166         (set +o errexit ; ksh93 $? --nroff ; true) 2>&1 | \
 167         sed -e 's/\.DS/.nf/g;s/\.DE/.fi/' \
 168         -e 's/\.TH BLDENV 1/.TH BLDENV 1ONBLD "September 4, 2018"/' \
 169         -e 's/.OP \([a-z]\) - flag -/.OP \\-\1/g' \
 170         -e 's/(1)/(1ONBLD)/' > "$@"
 171 
 172 nightly: nightly.sh stdenv.sh
 173         $(RM) "$@"
 174         sed -e '/# STDENV_START/ r stdenv.sh' nightly.sh > nightly
 175         $(CHMOD) +x "$@"
 176 
 177 #
 178 # Not run by default: bootstrap...
 179 check:
 180         $(ROOTONBLDBINMACH)/mandoc -Tlint -Wwarning $(MAN1ONBLDFILES)
 181 
 182 include ../Makefile.targ
 183