Ignore:
Timestamp:
1999-06-28T14:09:43+12:00 (25 years ago)
Author:
sjboddie
Message:

altered mkcol.pl so that it doesn't copy CVS directories from modelcol

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/bin/script/mkcol.pl

    r9 r303  
    3636
    3737    opendir(DIR, $modeldir) || die "Can't read $modeldir";
    38     my @files = grep(!/^\.\.?$/, readdir(DIR));
     38    my @files = grep(!/^(\.\.?|CVS)$/, readdir(DIR));
    3939    closedir(DIR);
    4040
     
    113113}
    114114
     115if ($collection eq "CVS") {
     116    print STDERR "No collection can be named CVS as this may interfere\n";
     117    print STDERR "with directories created by the CVS versioning system\n";
     118    die "\n";
     119}
     120
    115121if (!defined($creator) || $creator eq "") {
    116122    print STDERR "The creator was not defined. This variable is\n";
Note: See TracChangeset for help on using the changeset viewer.