Difference for lib/collect.pl.in from version 1.4 to 1.5


version 1.4 version 1.5
Line 2
 
Line 2
   
 require "util.pl";  require "util.pl";
   
 if ($#ARGV != 0 || ($ARGV[0] =~ m/^--?[hH](elp)?$/)){  if ($#ARGV >= 0) {
       if ($ARGV[0] =~ m/^--?[hH](elp)?$/){
     die ("\nUSAGE: perl collect.pl  ARCHDIR\n".      die ("\nUSAGE: perl collect.pl  ARCHDIR\n".
         "\nWhere ARCHDIR is the directory where you stored the ".          "\nWhere ARCHDIR is the directory where you stored the ".
         "raw archetypes.\n".          "raw archetypes.\n".
Line 10
 
Line 11
         "archetypes,bmaps,bmaps.paths,faces,animations.\n"          "archetypes,bmaps,bmaps.paths,faces,animations.\n"
     )      )
 }  }
   }
   
   # archonly is used to only build the archetypes.  I find this
   # very handy if I know I've only changed .arc files - I don't want
   # to rebuild the other files, because now cvs tries to do diffs
   # on them as well as commit them, even if there are no changes.
   $archonly = 0;
   if ($#ARGV >= 1) {
       if ($ARGV[1] eq "ARCHONLY") { $archonly = 1; }
       else {print "Ignoring unknown option: $ARGV[1]\n"; }
   }
   
   
 $root = $ARGV[0];  $root = $ARGV[0];
Line 29
 
Line 41
 &archsOut;  &archsOut;
 close(ARCH);  close(ARCH);
   
   
   if (!$archonly) {
 &info("$bmaps");  &info("$bmaps");
 open(BMAPS,">".$bmaps) || &die("cannot open ".$bmaps);  open(BMAPS,">".$bmaps) || &die("cannot open ".$bmaps);
 &bmapsOut;  &bmapsOut;
 close(BMAPS);  close(BMAPS);
   
 open(BMAPS,">".$paths) || &die("cannot open ".$paths);  open(BMAPS,">".$paths) || &die("cannot open ".$paths);
 &pathsOut;  &pathsOut;
 close(BMAPS);  close(BMAPS);
Line 46
 
Line 61
 open(ANIM,">".$animations) || &die("cannot open ".$animations);  open(ANIM,">".$animations) || &die("cannot open ".$animations);
 &animOut;  &animOut;
 close(ANIM);  close(ANIM);
   }
   
   
 &stats;  &stats;
 exit 0;  exit 0;


Legend:
line(s) removed in v.1.4 
line(s) changed
 line(s) added in v.1.5

File made using version 1.98 of cvs2html by leaf at 2011-07-21 18:44