diff options
author | Liane Praza <Liane.Praza@Sun.COM> | 2010-03-02 19:29:26 -0700 |
---|---|---|
committer | Liane Praza <Liane.Praza@Sun.COM> | 2010-03-02 19:29:26 -0700 |
commit | ead1f93ee620d7580f7e53350fe5a884fc4f158a (patch) | |
tree | 05734388fb73a4ae5546c1c5ca8eead269fa57b7 /usr/src/tools/scripts/validate_paths.pl | |
parent | e508938e047be3149dd9883707b26c71e4105a35 (diff) | |
download | illumos-joyent-ead1f93ee620d7580f7e53350fe5a884fc4f158a.tar.gz |
PSARC 2010/067 Interim modernization updates
6915312 ON should be able to build IPS packages natively
6281004 docbook.dtd is obsolete and unused
6490919 strange file in onnv-gate
6878498 update tools proto ${ROOT} to include ${MACH} and make nightly.sh copy it into parent repository
6888427 SVM packages should drop legacy objects
6893530 Some header files can be opened up
6903324 sharemgr should either use isaexec or not build 64-bit commands
6920651 mktpl will inadvertently reuse stale license files for empty license lists
6920674 svvs kmods should not be built during an open build
Portions contributed by Rich Lowe <richlowe@richlowe.net>
--HG--
rename : usr/src/cmd/oamuser/user/stdprofile => usr/src/cmd/nsadmin/dot-profile.sh
rename : usr/src/cmd/nsadmin/profile => usr/src/cmd/nsadmin/etc-profile.sh
rename : usr/src/pkgdefs/common_files/i.manifest => usr/src/cmd/svc/common/i.manifest
rename : usr/src/pkgdefs/common_files/r.manifest => usr/src/cmd/svc/common/r.manifest
rename : usr/src/lib/brand/native/Makefile => usr/src/lib/brand/ipkg/Makefile
rename : usr/src/lib/brand/native/zone/Makefile => usr/src/lib/brand/ipkg/zone/Makefile
rename : usr/src/lib/brand/native/zone/SUNWblank.xml => usr/src/lib/brand/ipkg/zone/SUNWblank.xml
rename : usr/src/lib/brand/native/zone/SUNWdefault.xml => usr/src/lib/brand/ipkg/zone/SUNWdefault.xml
rename : usr/src/lib/brand/native/zone/config.xml => usr/src/lib/brand/ipkg/zone/config.xml
rename : usr/src/lib/brand/native/zone/platform.xml => usr/src/lib/brand/ipkg/zone/platform.xml
rename : usr/src/lib/brand/native/Makefile => usr/src/lib/brand/labeled/Makefile
rename : usr/src/lib/brand/native/zone/Makefile => usr/src/lib/brand/labeled/zone/Makefile
rename : usr/src/lib/brand/native/zone/config.xml => usr/src/lib/brand/labeled/zone/config.xml
rename : usr/src/lib/brand/native/zone/platform.xml => usr/src/lib/brand/labeled/zone/platform.xml
rename : usr/src/lib/brand/native/zone/common.ksh => usr/src/lib/brand/shared/common.ksh
rename : usr/src/lib/brand/native/zone/query.ksh => usr/src/lib/brand/shared/query.ksh
rename : usr/src/lib/brand/native/zone/uninstall.ksh => usr/src/lib/brand/shared/uninstall.ksh
rename : usr/src/pkgdefs/common_files/i.rbac => usr/src/lib/libsecdb/common/i.rbac
rename : usr/src/pkgdefs/common_files/r.rbac => usr/src/lib/libsecdb/common/r.rbac
rename : usr/src/pkgdefs/license_files/cr_ATT => usr/src/pkg/license_files/cr_ATT
rename : usr/src/pkgdefs/SUNWfipe/cr_Intel => usr/src/pkg/license_files/cr_Intel.SUNWfipe
rename : usr/src/pkgdefs/SUNWintgige/cr_Intel => usr/src/pkg/license_files/cr_Intel.SUNWintgige
rename : usr/src/pkgdefs/license_files/cr_Sun => usr/src/pkg/license_files/cr_Sun
rename : usr/src/pkgdefs/SUNWgrub/grubcredits => usr/src/pkg/license_files/grubcredits
rename : usr/src/pkgdefs/SUNWcsl/lic_AMD => usr/src/pkg/license_files/lic_AMD
rename : usr/src/pkgdefs/license_files/lic_CDDL => usr/src/pkg/license_files/lic_CDDL
rename : usr/src/pkgdefs/SUNWemlxs/lic_Emulex => usr/src/pkg/license_files/lic_Emulex
rename : usr/src/pkgdefs/license_files/lic_GPLv2 => usr/src/pkg/license_files/lic_GPLv2
rename : usr/src/pkgdefs/CPQary3/lic_HP => usr/src/pkg/license_files/lic_HP
rename : usr/src/tools/opensolaris/BINARYLICENSE.txt => usr/src/pkg/license_files/lic_OSBL
rename : usr/src/pkgdefs/license_files/lic_OSBL_preamble => usr/src/pkg/license_files/lic_OSBL_preamble
rename : usr/src/pkgdefs/SUNWqlc/lic_Qlogic => usr/src/pkg/license_files/lic_Qlogic
rename : usr/src/pkgdefs/SUNWhwdata/LICENSE => usr/src/pkg/license_files/lic_SUNWhwdata
rename : usr/src/pkgdefs/SUNWroute/copyright.in => usr/src/pkg/license_files/lic_SUNWroute
rename : usr/src/pkgdefs/SUNWgss/gss_license => usr/src/pkg/license_files/lic_gss
rename : usr/src/pkgdefs/license_files/license_in_headers => usr/src/pkg/license_files/license_in_headers
rename : usr/src/uts/intel/os/solaris.xpm.gz => usr/src/uts/intel/os/solaris.xpm
Diffstat (limited to 'usr/src/tools/scripts/validate_paths.pl')
-rw-r--r-- | usr/src/tools/scripts/validate_paths.pl | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/usr/src/tools/scripts/validate_paths.pl b/usr/src/tools/scripts/validate_paths.pl index 0c90feed2e..49f9ef7e69 100644 --- a/usr/src/tools/scripts/validate_paths.pl +++ b/usr/src/tools/scripts/validate_paths.pl @@ -3,9 +3,8 @@ # CDDL HEADER START # # The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. +# Common Development and Distribution License (the "License"). +# You may not use this file except in compliance with the License. # # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE # or http://www.opensolaris.org/os/licensing. @@ -21,11 +20,12 @@ # CDDL HEADER END # -# Copyright 2003 Sun Microsystems, Inc. All rights reserved. +# +# Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" +# # Given either a list of files containing paths on the command line or # a set of paths on standard input, validate that the paths actually # exist, and complain if they do not. This is invoked by nightly to @@ -63,16 +63,19 @@ # # -b <base> # Base directory for relative paths tested. +# +# -n <name> +# String to use in place of file name when using stdin use strict; -my ($opt_r, $opt_m, @opt_s, @opt_e, @opt_k, $opt_b); +my ($opt_r, $opt_m, @opt_s, @opt_e, @opt_k, $opt_b, $opt_n); my ($keywords, @exclude); sub usage { die "usage: $0 [-r] [-m]\n", "\t[-s/from/to/] [-e <pattern>] [-k <keyword>] [-b <base>]\n", - "\t[files...]\n"; + "\t[-n <name> ] [files...]\n"; } # process the path list in a given file @@ -138,11 +141,12 @@ sub next_arg { # I'd like to use Perl's getopts here, but it doesn't handle repeated # options, and using comma separators is just too ugly. # This doesn't handle combined options (as in '-rm'), but I don't care. -my $arg, $opt_r, $opt_m, @opt_s, @opt_e, @opt_k, $opt_b; +my $arg, $opt_r, $opt_m, @opt_s, @opt_e, @opt_k, $opt_b, $opt_n; while ($#ARGV >= 0) { $_ = $ARGV[0]; last if /^[^-]/; shift @ARGV; + $opt_n = "standard input"; last if /^--$/; SWITCH: { /^-r/ && do { $opt_r = 1; last SWITCH; }; @@ -166,6 +170,10 @@ while ($#ARGV >= 0) { $opt_b = next_arg($1); last SWITCH; } + if (/^-n(.*)$/) { + $opt_n = next_arg($1); + last SWITCH; + } print "$0: unknown option $_\n"; usage(); } @@ -184,7 +192,7 @@ $opt_b .= "/" if $opt_b =~ /[^\/]$/; my $file; if ($#ARGV < 0) { - process_paths(\*STDIN, "standard input"); + process_paths(\*STDIN, $opt_n); } else { foreach $file (@ARGV) { if (! -e $file) { |