| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: sets.subr,v 1.95 2009/12/02 14:28:24 uebayasi Exp $ | | 1 | # $NetBSD: sets.subr,v 1.96 2009/12/02 14:32:15 uebayasi Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | # | | 4 | # |
5 | # The following variables contain defaults for sets.subr functions and callers: | | 5 | # The following variables contain defaults for sets.subr functions and callers: |
6 | # setsdir path to src/distrib/sets | | 6 | # setsdir path to src/distrib/sets |
7 | # nlists list of base sets | | 7 | # nlists list of base sets |
8 | # xlists list of x11 sets | | 8 | # xlists list of x11 sets |
9 | # extlists list of extsrc sets | | 9 | # extlists list of extsrc sets |
10 | # obsolete controls if obsolete files are selected instead | | 10 | # obsolete controls if obsolete files are selected instead |
11 | # module if != "no", enable MODULE sets | | 11 | # module if != "no", enable MODULE sets |
12 | # shlib shared library format (a.out, elf, or "") | | 12 | # shlib shared library format (a.out, elf, or "") |
13 | # stlib static library format (a.out, elf) | | 13 | # stlib static library format (a.out, elf) |
14 | # | | 14 | # |
| @@ -134,32 +134,32 @@ MKMANPAGES=yes | | | @@ -134,32 +134,32 @@ MKMANPAGES=yes |
134 | .endif | | 134 | .endif |
135 | .if \${MKX11} != "no" | | 135 | .if \${MKX11} != "no" |
136 | . if \${X11FLAVOUR} == "Xorg" | | 136 | . if \${X11FLAVOUR} == "Xorg" |
137 | MKXORG:=yes | | 137 | MKXORG:=yes |
138 | MKX11:=no | | 138 | MKX11:=no |
139 | . else | | 139 | . else |
140 | MKXORG:=no | | 140 | MKXORG:=no |
141 | . endif | | 141 | . endif |
142 | .endif | | 142 | .endif |
143 | all: | | 143 | all: |
144 | .for i in MACHINE MACHINE_ARCH MACHINE_CPU \ | | 144 | .for i in MACHINE MACHINE_ARCH MACHINE_CPU \ |
145 | HAVE_BINUTILS HAVE_GCC HAVE_GDB OBJECT_FMT TOOLCHAIN_MISSING \ | | 145 | HAVE_BINUTILS HAVE_GCC HAVE_GDB OBJECT_FMT TOOLCHAIN_MISSING \ |
146 | ${MKEXTRAVARS} \${_MKVARS.yes} \${_MKVARS.no} | | 146 | ${MKEXTRAVARS} \${_MKVARS.yes} \${_MKVARS.no} |
147 | @echo "export \$i=\${\$i}" | | 147 | @echo "export \$i=\"\${\$i}\"" |
148 | .endfor | | 148 | .endfor |
149 | | | 149 | |
150 | EOMAKE | | 150 | EOMAKE |
151 | ); do | | 151 | ); do |
152 | echo 1>&2 "DEBUG: read $x" | | 152 | # echo 1>&2 "DEBUG: read $x" |
153 | eval $x | | 153 | eval $x |
154 | done | | 154 | done |
155 | IFS=$oIFS | | 155 | IFS=$oIFS |
156 | | | 156 | |
157 | setsdir=${0%/*} | | 157 | setsdir=${0%/*} |
158 | obsolete=0 | | 158 | obsolete=0 |
159 | module=yes | | 159 | module=yes |
160 | if [ "${MKKMOD}" = "no" ]; then | | 160 | if [ "${MKKMOD}" = "no" ]; then |
161 | module=no # MODULEs are off. | | 161 | module=no # MODULEs are off. |
162 | elif [ "${MACHINE}" = "evbppc" ]; then | | 162 | elif [ "${MACHINE}" = "evbppc" ]; then |
163 | module=no # Turn off MODULEs for some ports. | | 163 | module=no # Turn off MODULEs for some ports. |
164 | fi | | 164 | fi |
165 | # Determine lib type. Do this first so stlib also gets set. | | 165 | # Determine lib type. Do this first so stlib also gets set. |
| @@ -187,27 +187,27 @@ extlists="extbase extcomp extetc" | | | @@ -187,27 +187,27 @@ extlists="extbase extcomp extetc" |
187 | OSRELEASE=`${HOST_SH} ${NETBSDSRCDIR}/sys/conf/osrelease.sh` | | 187 | OSRELEASE=`${HOST_SH} ${NETBSDSRCDIR}/sys/conf/osrelease.sh` |
188 | MODULEDIR="stand/${MACHINE}/${OSRELEASE}/modules" | | 188 | MODULEDIR="stand/${MACHINE}/${OSRELEASE}/modules" |
189 | SUBST="s#@MODULEDIR@#${MODULEDIR}#g" | | 189 | SUBST="s#@MODULEDIR@#${MODULEDIR}#g" |
190 | SUBST="${SUBST};s#@OSRELEASE@#${OSRELEASE}#g" | | 190 | SUBST="${SUBST};s#@OSRELEASE@#${OSRELEASE}#g" |
191 | SUBST="${SUBST};s#@MACHINE@#${MACHINE}#g" | | 191 | SUBST="${SUBST};s#@MACHINE@#${MACHINE}#g" |
192 | | | 192 | |
193 | # | | 193 | # |
194 | # list_set_files setfile [...] | | 194 | # list_set_files setfile [...] |
195 | # | | 195 | # |
196 | # Produce a packing list for setfile(s). | | 196 | # Produce a packing list for setfile(s). |
197 | # In each file, a record consists of a path and a System Package name, | | 197 | # In each file, a record consists of a path and a System Package name, |
198 | # separated by whitespace. E.g., | | 198 | # separated by whitespace. E.g., |
199 | # | | 199 | # |
200 | # # $NetBSD: sets.subr,v 1.95 2009/12/02 14:28:24 uebayasi Exp $ | | 200 | # # $NetBSD: sets.subr,v 1.96 2009/12/02 14:32:15 uebayasi Exp $ |
201 | # . base-sys-root [keyword[,...]] | | 201 | # . base-sys-root [keyword[,...]] |
202 | # ./altroot base-sys-root | | 202 | # ./altroot base-sys-root |
203 | # ./bin base-sys-root | | 203 | # ./bin base-sys-root |
204 | # ./bin/[ base-util-root | | 204 | # ./bin/[ base-util-root |
205 | # ./bin/cat base-util-root | | 205 | # ./bin/cat base-util-root |
206 | # [...] | | 206 | # [...] |
207 | # | | 207 | # |
208 | # A # in the first column marks a comment. | | 208 | # A # in the first column marks a comment. |
209 | # | | 209 | # |
210 | # If ${obsolete} != 0, only entries with an "obsolete" keyword will | | 210 | # If ${obsolete} != 0, only entries with an "obsolete" keyword will |
211 | # be printed. All other keywords must be present. | | 211 | # be printed. All other keywords must be present. |
212 | # | | 212 | # |
213 | # The third field is an optional comma separated list of keywords to | | 213 | # The third field is an optional comma separated list of keywords to |