Changeset 843 for trunk/gsdl/bin/script/mkcol.pl
- Timestamp:
- 1999-12-13T17:34:19+13:00 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/bin/script/mkcol.pl
r797 r843 47 47 # print STDERR " -index type The indexes which should be made\n"; 48 48 # print STDERR " -indextext name The index description\n"; 49 # print STDERR " -defaultindex type The index to use if no others are supplied\n\n"; 49 # print STDERR " -defaultindex type The index to use if no others are supplied\n"; 50 51 print STDERR " -title text The title for the collection\n"; 52 print STDERR " -about text The about text for the collection\n"; 53 print STDERR " -plugins list Space separated list of perl plugin modules to use\n"; 54 print STDERR " -refine list Space separated list of perl plugin modules to use\n"; 55 56 50 57 } 51 58 … … 56 63 57 64 if (!(-e $coldir)) { 58 if (!mkdir ($coldir, 0775)) { 65 66 my $store_umask = umask(0002); 67 my $mkdir_ok = mkdir ($coldir, 0777); 68 umask($store_umask); 69 70 if (!$mkdir_ok) 71 { 59 72 die "$!"; 60 73 } … … 91 104 $line =~ s/\*\*indexestext\*\*/$indexestextstr/g; 92 105 $line =~ s/\*\*defaultindex\*\*/$defaultindex/g; 106 $line =~ s/\*\*title\*\*/$title/g; 107 $line =~ s/\*\*about\*\*/$about/g; 108 $line =~ s/\*\*plugins\*\*/$plugins/g; 109 $line =~ s/\*\*refine\*\*/$refine/g; 93 110 94 111 print OUTFILE $line; … … 112 129 'index/.*/document:all', \@indexes, 113 130 'indextext/\.*/Terms must appear within the same document', \@indexestext, 114 'defaultindex/.*/document:all', \$defaultindex 131 'defaultindex/.*/document:all', \$defaultindex, 132 'title/.+/', \$title, 133 'about/.+/', \$about, 134 'plugins/.+/GMLPlug TEXTPlug ArcPlug RecPlug/', \$plugins, 135 'refine/.+/', \$refine 115 136 )) { 116 137 &print_usage(); … … 157 178 $beta = "true" unless defined $beta; 158 179 180 181 if (!defined($title) || $title eq "") { 182 $title = $collection; 183 } 184 159 185 # get capitalised version of the collection 160 186 $capcollection = $collection; … … 186 212 print STDERR "\n\nThe new collection is in $ENV{'GSDLHOME'}/collect/$collection.\n\n"; 187 213 214
Note:
See TracChangeset
for help on using the changeset viewer.