Print this page
11224 nightly and bldenv should be usable directly
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.
15 15 # If applicable, add the following below this CDDL HEADER, with the
↓ open down ↓ |
15 lines elided |
↑ open up ↑ |
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 25 #
26 -# Copyright 2018 Joyent, Inc.
26 +# Copyright 2020 Joyent, Inc.
27 27
28 28 SHELL=/usr/bin/ksh93
29 29
30 +SCRIPTS= \
31 + bldenv \
32 + nightly
33 +
30 34 SHFILES= \
31 35 Install \
32 - bldenv \
33 36 build_cscope \
34 37 bringovercheck \
35 38 checkpaths \
36 39 cstyle \
37 40 elfcmp \
38 41 flg.flp \
39 42 genoffsets \
40 - nightly \
41 43 onu \
42 44 protocmp.terse \
43 45 sccscheck \
44 46 webrev \
45 47 which_scm \
46 48 ws \
47 49 xref
48 50
49 51 PERLFILES= \
50 52 check_rtime \
51 53 find_elf \
52 54 interface_check \
53 55 interface_cmp \
54 56 jstyle \
55 57 validate_flg \
56 58 validate_paths \
57 59 wdiff
58 60
59 61 PERLMODULES= \
60 62 onbld_elfmod.pm \
61 63 onbld_elfmod_vertype.pm
62 64
63 65
64 66 PYFILES= \
65 67 cddlchk \
66 68 copyrightchk \
67 69 git-pbchk \
68 70 hdrchk \
69 71 mapfilechk \
70 72 validate_pkg \
71 73 wscheck \
72 74 wsdiff
73 75
74 76 SCRIPTLINKS= \
75 77 git-nits
76 78
77 79 MAN1ONBLDFILES= \
78 80 Install.1onbld \
79 81 bldenv.1onbld \
80 82 bringovercheck.1onbld \
81 83 cddlchk.1onbld \
82 84 checkpaths.1onbld \
83 85 check_rtime.1onbld \
84 86 cstyle.1onbld \
85 87 find_elf.1onbld \
86 88 flg.flp.1onbld \
87 89 git-pbchk.1onbld \
88 90 hdrchk.1onbld \
89 91 interface_check.1onbld \
90 92 interface_cmp.1onbld \
91 93 jstyle.1onbld \
92 94 mapfilechk.1onbld \
93 95 nightly.1onbld \
94 96 onu.1onbld \
95 97 sccscheck.1onbld \
96 98 webrev.1onbld \
97 99 which_scm.1onbld \
98 100 ws.1onbld \
99 101 wsdiff.1onbld \
100 102 xref.1onbld
101 103
102 104 MAN1ONBLDLINKS= \
103 105 git-nits.1onbld
104 106
105 107 MAKEFILES= \
106 108 xref.mk
107 109
108 110 ETCFILES= \
109 111 its.conf \
110 112 its.reg
111 113
112 114 EXCEPTFILES= \
113 115 check_rtime \
114 116 interface_check \
115 117 interface_cmp
116 118
117 119 CLEANFILES = $(SHFILES) $(PERLFILES) $(PYFILES) bldenv.1onbld onu.sh
118 120
119 121 include ../Makefile.tools
120 122
121 123 ROOTONBLDSCRIPTLINKS = $(SCRIPTLINKS:%=$(ROOTONBLDBIN)/%)
122 124 ROOTONBLDMAN1ONBLDLINKS = $(MAN1ONBLDLINKS:%=$(ROOTONBLDMAN1ONBLD)/%)
↓ open down ↓ |
72 lines elided |
↑ open up ↑ |
123 125
124 126 $(ROOTONBLDETCFILES) := FILEMODE= 644
125 127 $(ROOTONBLDEXCEPTFILES) := FILEMODE= 644
126 128 $(ROOTONBLDPERLMODULES) := FILEMODE= 644
127 129 $(ROOTONBLDMAKEFILES) := FILEMODE= 644
128 130 $(ROOTONBLDMAN1ONBLDFILES) := FILEMODE= 644
129 131
130 132 .KEEP_STATE:
131 133
132 134 all: $(SHFILES) $(PERLFILES) $(PERLMODULES) $(PYFILES) \
133 - $(MAN1ONBLDFILES) $(MAKEFILES)
135 + $(MAN1ONBLDFILES) $(MAKEFILES) $(SCRIPTS)
134 136
135 137 onu.sh: onu.sh.in
136 138 $(SED) -e "s:@PYTHON_VERSION@:$(PYTHON_VERSION):g" < onu.sh.in > $@
137 139
138 140 $(ROOTONBLDBIN)/git-nits:
139 141 $(RM) $(ROOTONBLDBIN)/git-nits
140 142 $(SYMLINK) git-pbchk $(ROOTONBLDBIN)/git-nits
141 143
142 144 $(ROOTONBLDMAN1ONBLD)/git-nits.1onbld:
143 145 $(RM) $(ROOTONBLDMAN1ONBLD)/git-nits.1onbld
144 146 $(SYMLINK) git-pbchk.1onbld $(ROOTONBLDMAN1ONBLD)/git-nits.1onbld
145 147
146 148 install: all .WAIT $(ROOTONBLDSHFILES) $(ROOTONBLDPERLFILES) \
147 149 $(ROOTONBLDPERLMODULES) $(ROOTONBLDPYFILES) \
148 150 $(ROOTONBLDSCRIPTLINKS) $(ROOTONBLDMAN1ONBLDFILES) \
149 151 $(ROOTONBLDMAKEFILES) $(ROOTONBLDETCFILES) \
150 - $(ROOTONBLDEXCEPTFILES) $(ROOTONBLDMAN1ONBLDLINKS)
152 + $(ROOTONBLDEXCEPTFILES) $(ROOTONBLDMAN1ONBLDLINKS) \
153 + $(ROOTONBLDSCRIPTS)
151 154
152 155 clean:
153 156 $(RM) $(CLEANFILES)
154 157
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 158 bldenv.1onbld: bldenv
165 159 $(RM) "$@"
166 160 (set +o errexit ; ksh93 $? --nroff ; true) 2>&1 | \
167 161 sed -e 's/\.DS/.nf/g;s/\.DE/.fi/' \
168 162 -e 's/\.TH BLDENV 1/.TH BLDENV 1ONBLD "September 4, 2018"/' \
169 163 -e 's/.OP \([a-z]\) - flag -/.OP \\-\1/g' \
170 164 -e 's/(1)/(1ONBLD)/' > "$@"
171 165
172 -nightly: nightly.sh stdenv.sh
173 - $(RM) "$@"
174 - sed -e '/# STDENV_START/ r stdenv.sh' nightly.sh > nightly
175 - $(CHMOD) +x "$@"
176 -
177 166 #
178 167 # Not run by default: bootstrap...
179 168 check:
180 169 $(ROOTONBLDBINMACH)/mandoc -Tlint -Wwarning $(MAN1ONBLDFILES)
181 170
182 171 include ../Makefile.targ
183 172
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX