[docs] xmldocs - racke modified bin/refs-autogen

docs at icdevgroup.org docs at icdevgroup.org
Sat Oct 15 08:35:59 EDT 2005


User:      racke
Date:      2005-10-15 12:35:59 GMT
Modified:  bin      refs-autogen
Log:
check in advance if all templates are available

Revision  Changes    Path
1.97      +12 -0     xmldocs/bin/refs-autogen


rev 1.97, prev_rev 1.96
Index: refs-autogen
===================================================================
RCS file: /var/cvs/xmldocs/bin/refs-autogen,v
retrieving revision 1.96
retrieving revision 1.97
diff -u -r1.96 -r1.97
--- refs-autogen	21 Sep 2005 12:07:25 -0000	1.96
+++ refs-autogen	15 Oct 2005 12:35:59 -0000	1.97
@@ -534,6 +534,18 @@
 	last if $last_path and $last_path eq $path;
 }
 
+# check in advance if all templates are available
+my @tpl_missing;
+for my $group (keys %autogenerated) {
+	unless (exists $templates{$group}) {
+		push(@tpl_missing, $group);
+	}
+}
+
+if (@tpl_missing) {
+	die "$0: Missing template(s): " . join(', ', @tpl_missing) . "\n";
+}
+
 ### THIS IS LAST RUN (Split in multiple loops to avoid chicken-and-egg problem)###
 # Final entry. That's where we add examples
 # (which don't have version-specific data, they're always "latest")








More information about the docs mailing list