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
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
↓ 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 \
35 37 elfcmp \
36 38 flg.flp \
37 39 genoffsets \
38 40 nightly \
39 41 onu \
40 42 protocmp.terse \
41 43 sccscheck \
42 44 webrev \
43 45 which_scm \
44 46 ws \
45 47 xref
46 48
47 49 PERLFILES= \
48 50 check_rtime \
49 51 find_elf \
50 52 interface_check \
51 53 interface_cmp \
52 54 jstyle \
53 55 validate_flg \
54 56 validate_paths \
55 57 wdiff
56 58
57 59 PERLMODULES= \
58 60 onbld_elfmod.pm \
59 61 onbld_elfmod_vertype.pm
60 62
61 63
62 64 PYFILES= \
63 65 cddlchk \
64 66 copyrightchk \
65 67 git-pbchk \
66 68 hdrchk \
67 69 mapfilechk \
68 70 validate_pkg \
69 71 wscheck \
70 72 wsdiff
71 73
72 74 SCRIPTLINKS= \
73 75 git-nits
74 76
75 77 MAN1ONBLDFILES= \
76 78 Install.1onbld \
77 79 bldenv.1onbld \
78 80 bringovercheck.1onbld \
79 81 cddlchk.1onbld \
80 82 checkpaths.1onbld \
81 83 check_rtime.1onbld \
82 84 cstyle.1onbld \
83 85 find_elf.1onbld \
84 86 flg.flp.1onbld \
85 87 git-pbchk.1onbld \
86 88 hdrchk.1onbld \
87 89 interface_check.1onbld \
88 90 interface_cmp.1onbld \
89 91 jstyle.1onbld \
90 92 mapfilechk.1onbld \
91 93 nightly.1onbld \
92 94 onu.1onbld \
93 95 sccscheck.1onbld \
94 96 webrev.1onbld \
95 97 which_scm.1onbld \
96 98 ws.1onbld \
97 99 wsdiff.1onbld \
98 100 xref.1onbld
99 101
100 102 MAN1ONBLDLINKS= \
101 103 git-nits.1onbld
102 104
103 105 MAKEFILES= \
104 106 xref.mk
105 107
106 108 ETCFILES= \
↓ 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) \
146 148 $(ROOTONBLDSCRIPTLINKS) $(ROOTONBLDMAN1ONBLDFILES) \
147 149 $(ROOTONBLDMAKEFILES) $(ROOTONBLDETCFILES) \
148 150 $(ROOTONBLDEXCEPTFILES) $(ROOTONBLDMAN1ONBLDLINKS)
149 151
150 152 clean:
151 153 $(RM) $(CLEANFILES)
152 154
153 155 bldenv: bldenv.sh stdenv.sh
154 156 $(RM) "$@"
155 157 sed -e '/# STDENV_START/ r stdenv.sh' bldenv.sh > "$@"
↓ 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