Commit | Line | Data |
---|---|---|
6092c506 | 1 | #!/usr/bin/perl |
83110c7a | 2 | |
86b74a81 | 3 | # (c)'11 H.Merijn Brand [ 26 Aug 2011 ] |
83110c7a MB |
4 | |
5 | # Small script to regenerate the links in U/all, that should | |
6 | # represent all the modules used in the current Configure | |
7 | # except the default dist libs | |
8 | ||
9 | use strict; | |
10 | use warnings; | |
11 | ||
12 | use File::Copy; | |
a8ae8817 | 13 | use FindBin; |
83110c7a | 14 | |
a8ae8817 | 15 | my $meta = "$FindBin::Bin/../"; |
83110c7a MB |
16 | my $perl = "/pro/3gl/CPAN/perl-current"; |
17 | # the files that metaconfig might (probably will) overwrite: | |
18 | my @safe = qw( Configure config_h.SH ); | |
19 | ||
20 | chdir $meta or die "no $meta"; | |
21 | mkdir "U/all"; # Ignore error if already exists | |
22 | chdir "U/all"; | |
23 | unlink <*.U >; | |
24 | ||
25 | for (@safe) { | |
26 | unlink $_; | |
27 | copy "$perl/$_", $_; | |
28 | } | |
29 | ||
a8ae8817 | 30 | @ARGV = ("$FindBin::Bin/mconfig -v -m -O 2>&1 |"); |
83110c7a MB |
31 | while (<>) { |
32 | s{^\s+$perl/U}{} or next; | |
33 | chomp; | |
34 | (my $f = $_) =~ s{.*/}{}; | |
def5638f MB |
35 | (my $l = "../$_") =~ s{//+}{/}g; |
36 | symlink $l, $f; | |
83110c7a MB |
37 | } |
38 | ||
39 | for (qw( Configure config_h.SH )) { | |
40 | unlink "$perl/$_"; | |
41 | move $_, "$perl/$_"; | |
42 | } | |
43 | ||
44 | __END__ | |
45 | The list of files that were linked before I started this script: | |
46 | U/all/abortsig.U | |
47 | U/all/alignbytes.U | |
48 | U/all/ansi2knr.U | |
49 | U/all/archlib.U | |
50 | U/all/archname.U | |
51 | U/all/atolf.U | |
52 | U/all/atoll.U | |
53 | U/all/bincompat3.U | |
54 | U/all/bincompat5005.U | |
55 | U/all/bin.U | |
56 | U/all/bitpbyte.U | |
57 | U/all/byteorder.U | |
58 | U/all/ccflags.U | |
59 | U/all/cc.U | |
60 | U/all/cf_email.U | |
61 | U/all/cf_who.U | |
62 | U/all/charorder.U | |
63 | U/all/charsize.U | |
64 | U/all/Checkcc.U | |
65 | U/all/Compile.U | |
66 | U/all/Config_h.U | |
67 | U/all/Config_sh.U | |
68 | U/all/cppstdin.U | |
69 | U/all/cpp_stuff.U | |
70 | U/all/Cppsym.U | |
71 | U/all/Csym.U | |
72 | U/all/d_access.U | |
73 | U/all/d_accessx.U | |
74 | U/all/d_asctime_r.U | |
75 | U/all/d_attribut.U | |
76 | U/all/dbm64.U | |
77 | U/all/d_builtin.U | |
78 | U/all/d_casti32.U | |
79 | U/all/d_castneg.U | |
80 | U/all/d_class.U | |
81 | U/all/d_clearenv.U | |
82 | U/all/d_clock_getres.U | |
83 | U/all/d_clock_gettime.U | |
84 | U/all/d_clock_settime.U | |
85 | U/all/d_closedir.U | |
86 | U/all/d_cmsghdr_s.U | |
87 | U/all/d_crypt_r.U | |
88 | U/all/d_csh.U | |
89 | U/all/d_ctime_r.U | |
90 | U/all/d_dirfd.U | |
91 | U/all/d_dirname_r.U | |
92 | U/all/d_dlsymun.U | |
93 | U/all/d_drand48proto.U | |
94 | U/all/d_drand48_r.U | |
95 | U/all/d_eaccess.U | |
96 | U/all/d_endgrent_r.U | |
97 | U/all/d_endgrent.U | |
98 | U/all/d_endhent.U | |
99 | U/all/d_endnent.U | |
100 | U/all/d_endpent.U | |
101 | U/all/d_endpwent_r.U | |
102 | U/all/d_endpwent.U | |
103 | U/all/d_endsent.U | |
104 | U/all/d_endspent.U | |
105 | U/all/d_eofpipe.U | |
106 | U/all/Devel.U | |
107 | U/all/devtype.U | |
108 | U/all/d_fchdir.U | |
109 | U/all/d_fcntl_can_lock.U | |
110 | U/all/d_fd_set.U | |
111 | U/all/d_finitel.U | |
112 | U/all/d_finite.U | |
113 | U/all/d_flexfnam.U | |
114 | U/all/d_fpclassify.U | |
115 | U/all/d_fp_class_l.U | |
116 | U/all/d_fp_classl.U | |
117 | U/all/d_fp_class.U | |
118 | U/all/d_fpclass.U | |
119 | U/all/d_fpos64_t.U | |
120 | U/all/d_frexpl.U | |
121 | U/all/d_fs_data_s.U | |
122 | U/all/d_fseeko.U | |
123 | U/all/d_fstatfs.U | |
124 | U/all/d_fsync.U | |
125 | U/all/d_ftello.U | |
126 | U/all/d_futimes.U | |
127 | U/all/d__fwalk.U | |
128 | U/all/d_gconvert.U | |
129 | U/all/d_getcwd.U | |
130 | U/all/d_getespwnam.U | |
131 | U/all/d_getfsstat.U | |
132 | U/all/d_getgrent_r.U | |
133 | U/all/d_getgrent.U | |
134 | U/all/d_getgrgid_r.U | |
135 | U/all/d_getgrnam_r.U | |
136 | U/all/d_gethbyad.U | |
137 | U/all/d_gethbynm.U | |
138 | U/all/d_gethent.U | |
139 | U/all/d_gethname.U | |
140 | U/all/d_gethostprotos.U | |
141 | U/all/d_getitimer.U | |
142 | U/all/d_getlogin_r.U | |
143 | U/all/d_getmntent_r.U | |
144 | U/all/d_getmntent.U | |
145 | U/all/d_getmntinfo_r.U | |
146 | U/all/d_getmnt.U | |
147 | U/all/d_getnbyad.U | |
148 | U/all/d_getnbynm.U | |
149 | U/all/d_getnent.U | |
150 | U/all/d_getnetprotos.U | |
151 | U/all/d_getpagsz.U | |
152 | U/all/d_getpent.U | |
153 | U/all/d_getpgrp.U | |
154 | U/all/d_getprotby.U | |
155 | U/all/d_getprotoprotos.U | |
156 | U/all/d_getprpwnam.U | |
157 | U/all/d_getpwent_r.U | |
158 | U/all/d_getpwent.U | |
159 | U/all/d_getpwnam_r.U | |
160 | U/all/d_getpwuid_r.U | |
161 | U/all/d_getrlimit.U | |
162 | U/all/d_getsent.U | |
163 | U/all/d_getservprotos.U | |
164 | U/all/d_getspent_r.U | |
165 | U/all/d_getspent.U | |
166 | U/all/d_getspnam_r.U | |
167 | U/all/d_getspnam.U | |
168 | U/all/d_getsrvby.U | |
169 | U/all/d_gmtime_r.U | |
170 | U/all/d_gnulibc.U | |
171 | U/all/d_hasmntopt.U | |
172 | U/all/d_htonl.U | |
173 | U/all/d_iconv.U | |
174 | U/all/d_int64_t.U | |
175 | U/all/d_iovec_s.U | |
176 | U/all/d_isascii.U | |
177 | U/all/d_isfinite.U | |
178 | U/all/d_isinf.U | |
179 | U/all/d_isnanl.U | |
180 | U/all/d_isnan.U | |
181 | U/all/d_keepsig.U | |
182 | U/all/d_lchmod.U | |
183 | U/all/d_lchown.U | |
184 | U/all/d_ldbl_dig.U | |
185 | U/all/dlext.U | |
186 | U/all/d_libm_lib_version.U | |
187 | U/all/d_llseek.U | |
188 | U/all/d_localtime_r.U | |
189 | U/all/d_longdbl.U | |
190 | U/all/d_longlong.U | |
191 | U/all/d_lseekproto.U | |
192 | U/all/dlsrc.U | |
193 | U/all/d_lutimes.U | |
194 | U/all/d_madvise.U | |
195 | U/all/d_malloc_size.U | |
196 | U/all/d_memchr.U | |
197 | U/all/d_mkdtemp.U | |
198 | U/all/d_mknod.U | |
199 | U/all/d_mkstemps.U | |
200 | U/all/d_mkstemp.U | |
201 | U/all/d_mmap.U | |
202 | U/all/d_modfl.U | |
203 | U/all/d_mprotect.U | |
204 | U/all/d_mq_close.U | |
205 | U/all/d_mq_getattr.U | |
206 | U/all/d_mq_notify.U | |
207 | U/all/d_mq_open.U | |
208 | U/all/d_mq_receive.U | |
209 | U/all/d_mq_send.U | |
210 | U/all/d_mq_setattr.U | |
211 | U/all/d_mq_unlink.U | |
212 | U/all/d_msghdr_s.U | |
213 | U/all/d_msg.U | |
214 | U/all/d_nanosleep.U | |
215 | U/all/d_NOFILE.U | |
216 | U/all/d_off64_t.U | |
217 | U/all/d_open3.U | |
218 | U/all/doublesize.U | |
219 | U/all/d_portable.U | |
220 | U/all/d_posix_clock.U | |
221 | U/all/d_posix_mq.U | |
222 | U/all/d_posix_sched.U | |
223 | U/all/d_posix_sem.U | |
224 | U/all/d_posix_shm.U | |
225 | U/all/d_posix_timer.U | |
226 | U/all/d_printfed.U | |
227 | U/all/d_pthrattrj.U | |
228 | U/all/d_pthreadj.U | |
229 | U/all/d_pthread_y.U | |
230 | U/all/d_qgcvt.U | |
231 | U/all/d_random_r.U | |
232 | U/all/d_rand_r.U | |
233 | U/all/d_readdir_r.U | |
234 | U/all/d_readv.U | |
235 | U/all/d_recvmsg.U | |
236 | U/all/d_safebcpy.U | |
237 | U/all/d_safemcpy.U | |
238 | U/all/d_sanemcmp.U | |
239 | U/all/d_sbrkproto.U | |
240 | U/all/d_scannl.U | |
241 | U/all/d_sched_getparam.U | |
242 | U/all/d_sched_getscheduler.U | |
243 | U/all/d_sched_gpmax.U | |
244 | U/all/d_sched_gpmin.U | |
245 | U/all/d_sched_rrgi.U | |
246 | U/all/d_sched_setparam.U | |
247 | U/all/d_sched_setscheduler.U | |
248 | U/all/d_sem_close.U | |
249 | U/all/d_sem_destroy.U | |
250 | U/all/d_sem_getvalue.U | |
251 | U/all/d_sem_init.U | |
252 | U/all/d_sem_open.U | |
253 | U/all/d_sem_post.U | |
254 | U/all/d_sem_trywait.U | |
255 | U/all/d_sem.U | |
256 | U/all/d_sem_unlink.U | |
257 | U/all/d_sem_wait.U | |
258 | U/all/d_sendmsg.U | |
259 | U/all/d_setgrent_r.U | |
260 | U/all/d_setgrent.U | |
261 | U/all/d_setgrps.U | |
262 | U/all/d_sethent.U | |
263 | U/all/d_setitimer.U | |
264 | U/all/d_setnent.U | |
265 | U/all/d_setpent.U | |
266 | U/all/d_setpgrp.U | |
267 | U/all/d_setproctitle.U | |
268 | U/all/d_setpwent_r.U | |
269 | U/all/d_setpwent.U | |
270 | U/all/d_setrlimit.U | |
271 | U/all/d_setsent.U | |
272 | U/all/d_setspent.U | |
273 | U/all/d_setvbuf.U | |
274 | U/all/d_sfio.U | |
275 | U/all/d_sgndchr.U | |
276 | U/all/d_shm_open.U | |
277 | U/all/d_shm.U | |
278 | U/all/d_shm_unlink.U | |
279 | U/all/d_sigaction.U | |
280 | U/all/d_sigqueue.U | |
281 | U/all/d_sigsetjmp.U | |
282 | U/all/d_sigtimedwait.U | |
283 | U/all/d_sigwaitinfo.U | |
284 | U/all/d_sigwait.U | |
285 | U/all/d_sitecustomize.U | |
286 | U/all/d_snprintf.U | |
287 | U/all/d_socket.U | |
288 | U/all/d_socklen_t.U | |
289 | U/all/d_socks5_init.U | |
290 | U/all/d_sprintf_len.U | |
291 | U/all/d_sqrtl.U | |
292 | U/all/d_srand48_r.U | |
293 | U/all/d_srandom_r.U | |
294 | U/all/d_statblks.U | |
295 | U/all/d_statfs3.U | |
296 | U/all/d_statfs4.U | |
297 | U/all/d_statfs_f_flags.U | |
298 | U/all/d_statfs_s.U | |
299 | U/all/d_statfs.U | |
300 | U/all/d_statvfs.U | |
301 | U/all/d_stdstdio.U | |
302 | U/all/d_strerror_r.U | |
303 | U/all/d_strerror.U | |
304 | U/all/d_strtold.U | |
305 | U/all/d_strtoll.U | |
306 | U/all/d_strtoq.U | |
307 | U/all/d_strtoull.U | |
308 | U/all/d_strtoul.U | |
309 | U/all/d_strtouq.U | |
310 | U/all/d_telldirproto.U | |
311 | U/all/d_timer_create.U | |
312 | U/all/d_timer_delete.U | |
313 | U/all/d_timer_getoverrun.U | |
314 | U/all/d_timer_gettime.U | |
315 | U/all/d_timer_settime.U | |
316 | U/all/d_times.U | |
317 | U/all/d_time.U | |
318 | U/all/d_tmpnam_r.U | |
319 | U/all/d_ualarm.U | |
320 | U/all/d_union_semun.U | |
321 | U/all/d_unorderedl.U | |
322 | U/all/d_unordered.U | |
323 | U/all/d_unsetenv.U | |
324 | U/all/d_ustat.U | |
325 | U/all/d_utimes.U | |
326 | U/all/d_vfork.U | |
327 | U/all/d_voidsig.U | |
328 | U/all/d_vprintf.U | |
329 | U/all/d_wifstat.U | |
330 | U/all/d_writev.U | |
331 | U/all/ebcdic.U | |
332 | U/all/End.U | |
333 | U/all/errnolist.U | |
334 | U/all/Extensions.U | |
335 | U/all/Extractall.U | |
336 | U/all/Extract.U | |
337 | U/all/fflushall.U | |
338 | U/all/Findhdr.U | |
339 | U/all/Finish.U | |
340 | U/all/floatsize.U | |
341 | U/all/fpossize.U | |
342 | U/all/fpostype.U | |
343 | U/all/fpu.U | |
344 | U/all/gccvers.U | |
345 | U/all/Getfile.U | |
346 | U/all/gidf.U | |
347 | U/all/gidsign.U | |
348 | U/all/gidsize.U | |
349 | U/all/gidtype.U | |
350 | U/all/groupstype.U | |
351 | U/all/Guess.U | |
352 | U/all/Hasfield.U | |
353 | U/all/Hasproto.U | |
354 | U/all/Hasstruct.U | |
355 | U/all/Head.U | |
356 | U/all/html1dir.U | |
357 | U/all/html3dir.U | |
358 | U/all/i_db.U | |
359 | U/all/i_fp_class.U | |
360 | U/all/i_grp.U | |
361 | U/all/i_iconv.U | |
362 | U/all/i_ieeefp.U | |
363 | U/all/i_inttypes.U | |
364 | U/all/i_libutil.U | |
365 | U/all/i_machcthr.U | |
366 | U/all/i_malloc.U | |
367 | U/all/i_mntent.U | |
368 | U/all/i_mqueue.U | |
369 | U/all/inc_version_list.U | |
370 | U/all/i_netdb.U | |
371 | U/all/i_netinettcp.U | |
372 | U/all/Inhdr.U | |
373 | U/all/i_nlist.U | |
374 | U/all/inotype.U | |
375 | U/all/installprefix.U | |
376 | U/all/installstyle.U | |
377 | U/all/Instruct.U | |
378 | U/all/instubperl.U | |
379 | U/all/intsize.U | |
380 | U/all/i_poll.U | |
381 | U/all/i_prot.U | |
382 | U/all/i_pthread.U | |
383 | U/all/i_pwd.U | |
384 | U/all/i_sched.U | |
385 | U/all/i_semaphore.U | |
386 | U/all/i_shadow.U | |
387 | U/all/i_socks.U | |
388 | U/all/issymlink.U | |
389 | U/all/i_sunmath.U | |
390 | U/all/i_sysaccess.U | |
391 | U/all/i_syslog.U | |
392 | U/all/i_sysmman.U | |
393 | U/all/i_sysmode.U | |
394 | U/all/i_sysmount.U | |
395 | U/all/i_sysrusage.U | |
396 | U/all/i_syssecrt.U | |
397 | U/all/i_sysstatfs.U | |
398 | U/all/i_sysstatvfs.U | |
399 | U/all/i_sysuio.U | |
400 | U/all/i_sysutsname.U | |
401 | U/all/i_sysvfs.U | |
402 | U/all/i_time.U | |
403 | U/all/i_ulimit.U | |
404 | U/all/i_ustat.U | |
405 | U/all/libc.U | |
406 | U/all/libnlist.U | |
407 | U/all/libperl.U | |
408 | U/all/libpth.U | |
409 | U/all/libs.U | |
410 | U/all/lib.U | |
411 | U/all/lns.U | |
412 | U/all/localarch.U | |
413 | U/all/locallib.U | |
414 | U/all/Loc_ar.U | |
415 | U/all/Loc.U | |
416 | U/all/longdblfio.U | |
417 | U/all/lseektype.U | |
418 | U/all/mad.U | |
419 | U/all/mallocsrc.U | |
420 | U/all/man1dir.U | |
421 | U/all/man3dir.U | |
422 | U/all/mandirstyle.U | |
423 | U/all/mandirs.U | |
424 | U/all/Mksymlinks.U | |
425 | U/all/models.U | |
426 | U/all/modetype.U | |
427 | U/all/multiarch.U | |
428 | U/all/myhostname.U | |
429 | U/all/Myinit.U | |
430 | U/all/Myread.U | |
431 | U/all/nblock_io.U | |
432 | U/all/need_va_copy.U | |
433 | U/all/netdbtype.U | |
434 | U/all/nis.U | |
435 | U/all/oldarchlib.U | |
436 | U/all/Oldconfig.U | |
437 | U/all/Oldsym.U | |
438 | U/all/Options.U | |
439 | U/all/orderlib.U | |
440 | U/all/otherlibdirs.U | |
441 | U/all/pager.U | |
442 | U/all/patchlevel.U | |
443 | U/all/perl5.U | |
444 | U/all/perladmin.U | |
445 | U/all/perlpath.U | |
446 | U/all/perlxvf.U | |
447 | U/all/perlxv.U | |
448 | U/all/pidsign.U | |
449 | U/all/pidsize.U | |
450 | U/all/pidtype.U | |
451 | U/all/prefix.U | |
452 | U/all/privlib.U | |
453 | U/all/Protochk.U | |
454 | U/all/ptrsize.U | |
455 | U/all/quadfio.U | |
456 | U/all/quadtype.U | |
457 | U/all/randbits.U | |
458 | U/all/randfunc.U | |
459 | U/all/sbrksmart.U | |
460 | U/all/scriptdir.U | |
461 | U/all/selectminbits.U | |
462 | U/all/selecttype.U | |
463 | U/all/Setprefixvar.U | |
464 | U/all/Signal.U | |
465 | U/all/sig_name.U | |
466 | U/all/sitearch.U | |
467 | U/all/sitebin.U | |
468 | U/all/sitehtml1dir.U | |
469 | U/all/sitehtml1.U | |
470 | U/all/sitehtml3dir.U | |
471 | U/all/sitehtml3.U | |
472 | U/all/sitelib.U | |
473 | U/all/siteman1dir.U | |
474 | U/all/siteman1.U | |
475 | U/all/siteman3dir.U | |
476 | U/all/siteman3.U | |
477 | U/all/siteprefix.U | |
478 | U/all/sitescriptdir.U | |
479 | U/all/sitescript.U | |
480 | U/all/sizesize.U | |
481 | U/all/sizetype.U | |
482 | U/all/sockopt.U | |
483 | U/all/socksizetype.U | |
484 | U/all/so.U | |
485 | U/all/spitshell.U | |
486 | U/all/src.U | |
487 | U/all/ssizesize.U | |
488 | U/all/ssizetype.U | |
489 | U/all/startperl.U | |
490 | U/all/stdchar.U | |
491 | U/all/stdio64.U | |
492 | U/all/stdio_streams.U | |
493 | U/all/sunscanf.U | |
494 | U/all/trnl.U | |
495 | U/all/Tr.U | |
496 | U/all/Typedef.U | |
497 | U/all/uidf.U | |
498 | U/all/uidsign.U | |
499 | U/all/uidsize.U | |
500 | U/all/uidtype.U | |
501 | U/all/Unix.U | |
502 | U/all/use64bits.U | |
503 | U/all/uselfs.U | |
504 | U/all/uselongdbl.U | |
505 | U/all/uselonglong.U | |
506 | U/all/usemorebits.U | |
507 | U/all/usemultiplicity.U | |
508 | U/all/usenm.U | |
509 | U/all/useperlio.U | |
510 | U/all/usesocks.U | |
511 | U/all/usethreads.U | |
512 | U/all/usrinc.U | |
513 | U/all/vendorarch.U | |
514 | U/all/vendorbin.U | |
515 | U/all/vendorhtml1dir.U | |
516 | U/all/vendorhtml1.U | |
517 | U/all/vendorhtml3dir.U | |
518 | U/all/vendorhtml3.U | |
519 | U/all/vendorlib.U | |
520 | U/all/vendorman1dir.U | |
521 | U/all/vendorman1.U | |
522 | U/all/vendorman3dir.U | |
523 | U/all/vendorman3.U | |
524 | U/all/vendorprefix.U | |
525 | U/all/vendorscript.U | |
526 | U/all/versiononly.U | |
527 | U/all/voidflags.U | |
528 | U/all/xs_apiversion.U |