Print this page
Add git-active utility
| 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 2009 Sun Microsystems, Inc. All rights reserved.
23 23 # Use is subject to license terms.
24 24 #
25 25
26 26 SHELL=/usr/bin/ksh93
27 27
28 28 SHFILES= \
29 29 Install \
30 30 acr \
31 31 bfu \
32 32 bfudrop \
33 33 bindrop \
34 34 bldenv \
35 35 build_cscope \
36 36 bringovercheck \
37 37 checkpaths \
38 38 checkproto \
39 39 cstyle \
40 40 elfcmp \
41 41 flg.flp \
42 42 genoffsets \
43 43 hgsetup \
44 44 keywords \
45 45 makebfu \
46 46 mkacr \
47 47 mkbfu \
48 48 mkclosed \
49 49 nightly \
50 50 onblddrop \
51 51 protocmp.terse \
52 52 sccscheck \
53 53 sccscp \
54 54 sccshist \
55 55 sccsmv \
56 56 sccsrm \
57 57 sdrop \
58 58 webrev \
59 59 which_scm \
60 60 ws \
61 61 wx \
62 62 wx2hg \
63 63 xref
64 64
65 65 PERLFILES= \
66 66 check_rtime \
|
↓ open down ↓ |
66 lines elided |
↑ open up ↑ |
67 67 jstyle \
68 68 mkreadme_osol \
69 69 mktpl \
70 70 validate_flg \
71 71 validate_paths \
72 72 wdiff
73 73
74 74 PYFILES= \
75 75 cddlchk \
76 76 copyrightchk \
77 + git-active \
77 78 hdrchk \
78 79 hg-active \
79 80 mapfilechk \
80 81 rtichk \
81 82 wsdiff
82 83
83 84 MAN1FILES= \
84 85 Install.1 \
85 86 acr.1 \
86 87 bldenv.1 \
87 88 bringovercheck.1 \
88 89 cddlchk.1 \
89 90 checkpaths.1 \
90 91 check_rtime.1 \
91 92 cstyle.1 \
92 93 flg.flp.1 \
93 94 hdrchk.1 \
94 95 hgsetup.1 \
95 96 jstyle.1 \
96 97 mapfilechk.1 \
97 98 mkacr.1 \
98 99 nightly.1 \
99 100 sccscheck.1 \
100 101 sccscp.1 \
101 102 sccsmv.1 \
102 103 sccsrm.1 \
103 104 webrev.1 \
104 105 which_scm.1 \
105 106 ws.1 \
106 107 wsdiff.1 \
107 108 wx.1 \
108 109 wx2hg.1 \
109 110 xref.1
110 111
111 112 MAKEFILES= \
112 113 xref.mk
113 114
114 115 ETCFILES= \
115 116 hgstyle \
116 117 its.conf \
117 118 its.reg
118 119
119 120 CLEANFILES = $(SHFILES) $(PERLFILES) $(PYFILES) bldenv.1
120 121
121 122 include ../Makefile.tools
122 123
123 124 OWNER= root
124 125 GROUP= bin
125 126
126 127 $(ROOTONBLDETCFILES) := FILEMODE= 644
127 128 $(ROOTONBLDMAKEFILES) := FILEMODE= 644
128 129 $(ROOTONBLDMAN1FILES) := FILEMODE= 644
129 130
130 131 .KEEP_STATE:
131 132
132 133 all: $(SHFILES) $(PERLFILES) $(PYFILES) $(MAN1FILES) $(MAKEFILES)
133 134
134 135 install: all .WAIT $(ROOTONBLDSHFILES) $(ROOTONBLDPERLFILES) \
135 136 $(ROOTONBLDPYFILES) $(ROOTONBLDMAN1FILES) \
136 137 $(ROOTONBLDMAKEFILES) $(ROOTONBLDETCFILES)
137 138
138 139 clean:
139 140 $(RM) $(CLEANFILES)
140 141
141 142 bldenv: bldenv.sh stdenv.sh
142 143 $(RM) "$@"
143 144 sed -e '/# STDENV_START/ r stdenv.sh' bldenv.sh > "$@"
144 145 # Check for shell lint and fail if we hit warings
145 146 shlintout="$$( /usr/bin/ksh93 -n "$@" 2>&1 )" ; \
146 147 [[ "$${shlintout}" != "" ]] && \
147 148 { print -r -- "$${shlintout}" ; false ; } || true
148 149 $(CHMOD) +x "$@"
149 150
150 151 bldenv.1: bldenv
151 152 $(RM) "$@"
152 153 (set +o errexit ; ksh93 $? --nroff ; true) 2>&1 | \
153 154 sed 's/\.DS/.nf/g;s/\.DE/.fi/' > "$@"
154 155
155 156 nightly: nightly.sh stdenv.sh
156 157 $(RM) "$@"
157 158 sed -e '/# STDENV_START/ r stdenv.sh' nightly.sh > nightly
158 159 $(CHMOD) +x "$@"
159 160
160 161 include ../Makefile.targ
161 162
|
↓ open down ↓ |
75 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX