Fixed if 'macros' could got checked out empty by our '-r captive' tag.
authorshort <>
Wed, 20 Aug 2003 18:30:40 +0000 (18:30 +0000)
committershort <>
Wed, 20 Aug 2003 18:30:40 +0000 (18:30 +0000)
autogen.pl

index b00dbec..88c71d8 100755 (executable)
@@ -24,6 +24,12 @@ $VERSION=do { my @r=(q$Revision$=~/\d+/g); sprintf "%d.".("%03d"x$#r),@r; };
 use strict;
 use warnings;
 
+BEGIN {
+       # 'macros' could got checked out empty by our '-r captive' tag.
+       if (!-f "./macros/AutoGen.pm") {
+               do { system $_ and die "$_: $!"; } for ("cvs co -A macros");
+               }
+       }
 use lib "./macros/";
 use AutoGen;