Print this page
9001 cdm is useless, remove it
9002 webrev should know how to get the git user name
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
Reviewed by: Joshua M. Clulow <jmc@joyent.com>
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
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 26 SHELL=/usr/bin/ksh93
27 27
↓ open down ↓ |
27 lines elided |
↑ open up ↑ |
28 28 SHFILES= \
29 29 Install \
30 30 bldenv \
31 31 build_cscope \
32 32 bringovercheck \
33 33 checkpaths \
34 34 cstyle \
35 35 elfcmp \
36 36 flg.flp \
37 37 genoffsets \
38 - hgsetup \
39 38 nightly \
40 39 onu \
41 40 protocmp.terse \
42 41 sccscheck \
43 42 webrev \
44 43 which_scm \
45 44 ws \
46 45 xref
47 46
48 47 PERLFILES= \
49 48 check_rtime \
50 49 find_elf \
51 50 interface_check \
52 51 interface_cmp \
53 52 jstyle \
54 53 validate_flg \
55 54 validate_paths \
56 55 wdiff
57 56
↓ open down ↓ |
9 lines elided |
↑ open up ↑ |
58 57 PERLMODULES= \
59 58 onbld_elfmod.pm \
60 59 onbld_elfmod_vertype.pm
61 60
62 61
63 62 PYFILES= \
64 63 cddlchk \
65 64 copyrightchk \
66 65 git-pbchk \
67 66 hdrchk \
68 - hg-active \
69 67 mapfilechk \
70 68 validate_pkg \
71 69 wsdiff
72 70
73 71 SCRIPTLINKS= \
74 72 git-nits
75 73
76 74 MAN1ONBLDFILES= \
77 75 Install.1onbld \
78 76 bldenv.1onbld \
79 77 bringovercheck.1onbld \
↓ open down ↓ |
1 lines elided |
↑ open up ↑ |
80 78 cddlchk.1onbld \
81 79 checkpaths.1onbld \
82 80 check_rtime.1onbld \
83 81 cstyle.1onbld \
84 82 find_elf.1onbld \
85 83 flg.flp.1onbld \
86 84 git-pbchk.1onbld \
87 85 hdrchk.1onbld \
88 86 interface_check.1onbld \
89 87 interface_cmp.1onbld \
90 - hgsetup.1onbld \
91 88 jstyle.1onbld \
92 89 mapfilechk.1onbld \
93 90 nightly.1onbld \
94 91 onu.1onbld \
95 92 sccscheck.1onbld \
96 93 webrev.1onbld \
97 94 which_scm.1onbld \
98 95 ws.1onbld \
99 96 wsdiff.1onbld \
100 97 xref.1onbld
101 98
102 99 MAN1ONBLDLINKS= \
103 100 git-nits.1onbld
104 101
105 102 MAKEFILES= \
106 103 xref.mk
107 104
108 105 ETCFILES= \
109 - hgstyle \
110 106 its.conf \
111 107 its.reg
112 108
113 109 EXCEPTFILES= \
114 110 check_rtime \
115 111 interface_check \
116 112 interface_cmp
117 113
118 114 CLEANFILES = $(SHFILES) $(PERLFILES) $(PYFILES) bldenv.1onbld onu.sh
119 115
120 116 onu.sh: onu.sh.in
121 117 $(SED) -e "s:@PYTHON_VERSION@:$(PYTHON_VERSION):g" < onu.sh.in > $@
122 118
123 119 include ../Makefile.tools
124 120
125 121 ROOTONBLDSCRIPTLINKS = $(SCRIPTLINKS:%=$(ROOTONBLDBIN)/%)
126 122 ROOTONBLDMAN1ONBLDLINKS = $(MAN1ONBLDLINKS:%=$(ROOTONBLDMAN1ONBLD)/%)
127 123
128 124 $(ROOTONBLDETCFILES) := FILEMODE= 644
129 125 $(ROOTONBLDEXCEPTFILES) := FILEMODE= 644
130 126 $(ROOTONBLDPERLMODULES) := FILEMODE= 644
131 127 $(ROOTONBLDMAKEFILES) := FILEMODE= 644
132 128 $(ROOTONBLDMAN1ONBLDFILES) := FILEMODE= 644
133 129
134 130 .KEEP_STATE:
135 131
136 132 all: $(SHFILES) $(PERLFILES) $(PERLMODULES) $(PYFILES) \
137 133 $(MAN1ONBLDFILES) $(MAKEFILES)
138 134
139 135 $(ROOTONBLDBIN)/git-nits:
140 136 $(RM) $(ROOTONBLDBIN)/git-nits
141 137 $(SYMLINK) git-pbchk $(ROOTONBLDBIN)/git-nits
142 138
143 139 $(ROOTONBLDMAN1ONBLD)/git-nits.1onbld:
144 140 $(RM) $(ROOTONBLDMAN1ONBLD)/git-nits.1onbld
145 141 $(SYMLINK) git-pbchk.1onbld $(ROOTONBLDMAN1ONBLD)/git-nits.1onbld
146 142
147 143 install: all .WAIT $(ROOTONBLDSHFILES) $(ROOTONBLDPERLFILES) \
148 144 $(ROOTONBLDPERLMODULES) $(ROOTONBLDPYFILES) \
149 145 $(ROOTONBLDSCRIPTLINKS) $(ROOTONBLDMAN1ONBLDFILES) \
150 146 $(ROOTONBLDMAKEFILES) $(ROOTONBLDETCFILES) \
151 147 $(ROOTONBLDEXCEPTFILES) $(ROOTONBLDMAN1ONBLDLINKS)
152 148
153 149 clean:
154 150 $(RM) $(CLEANFILES)
155 151
156 152 bldenv: bldenv.sh stdenv.sh
157 153 $(RM) "$@"
158 154 sed -e '/# STDENV_START/ r stdenv.sh' bldenv.sh > "$@"
159 155 # Check for shell lint and fail if we hit warnings
160 156 shlintout="$$( /usr/bin/ksh93 -n "$@" 2>&1 )" ; \
161 157 [[ "$${shlintout}" != "" ]] && \
162 158 { print -r -- "$${shlintout}" ; false ; } || true
163 159 $(CHMOD) +x "$@"
164 160
165 161 bldenv.1onbld: bldenv
166 162 $(RM) "$@"
167 163 (set +o errexit ; ksh93 $? --nroff ; true) 2>&1 | \
168 164 sed -e 's/\.DS/.nf/g;s/\.DE/.fi/' \
169 165 -e 's/\.TH BLDENV 1/.TH BLDENV 1ONBLD/' \
170 166 -e 's/(1)/(1ONBLD)/' > "$@"
171 167
172 168 nightly: nightly.sh stdenv.sh
173 169 $(RM) "$@"
174 170 sed -e '/# STDENV_START/ r stdenv.sh' nightly.sh > nightly
175 171 $(CHMOD) +x "$@"
176 172
177 173 include ../Makefile.targ
178 174
↓ open down ↓ |
59 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX