# --checked-out says we are pushing to a checked out tree
my $checked_out = 0;
+# --core-only says we only want to push corelibs, not extralibs
+my $core_only = 0;
sub message {
if ($verbose) {
message "== $dir not present or not a repository; skipping";
}
}
- for my $pkg (`cat libraries/core-packages libraries/extra-packages`) {
+ my $library_lists = $core_only
+ ? "libraries/core-packages"
+ : "libraries/core-packages libraries/extra-packages";
+ for my $pkg (`cat $library_lists`) {
chomp $pkg;
$dir = "libraries/$pkg";
if (-d "$dir") {
elsif ($arg eq "--checked-out") {
$checked_out = 1;
}
+ elsif ($arg eq "--core-only") {
+ $core_only = 1;
+ }
else {
$reporoot = $arg;
if (grep /^-q$/, @_) {