+27 Oct 2005 Aron Griffis <agriffis@gentoo.org>
+ * Fix handling of comments
+ * Add support for bare ~ as a synonym for ~all
+
23 Mar 2005 Aron Griffis <agriffis@gentoo.org>
* Only modify non-masked keywords with "all"
die "syntax: ekeyword { arch | ~[arch] | -[arch] } ebuild...\n"
}
for my $a (@ARGV) {
- next if $a =~ /$kw_re/o; # keyword
- next if $a =~ /^\S+\.ebuild$/; # ebuild
+ $a = '~all' if $a eq '~' or $a eq $ENV{'HOME'}; # for vapier
+ next if $a =~ /$kw_re/o; # keyword
+ next if $a =~ /^\S+\.ebuild$/; # ebuild
die "I don't understand $a\n";
}
/^KEYWORDS/ or print, next;
# extract the quoted section from KEYWORDS
- (my $quoted = $_) =~ s/^.*["'](.*?)["'].*/$1/s;
+ (my $quoted = $_) =~ s/^.*?["'](.*?)["'].*/$1/s;
# replace -* with -STAR for our convenience below
$quoted =~ s/-\*/-STAR/;