[docs] xmldocs - docelic modified 3 files

docs at icdevgroup.org docs at icdevgroup.org
Sun Dec 5 18:26:34 EST 2004


User:      docelic
Date:      2004-12-05 23:26:34 GMT
Modified:  bin      whatsnew-update
Added:     glossary session
Removed:   whatsnew parsed
Log:
bin/whatsnew-update now doesn't keep track of parsed messages
but simply deletes them after parse (it doesn't operate on mailman's
archive so it can delete them ;-)) , and when no files are found to
process it exits normally (suitable for crontab).

Revision  Changes    Path
1.3       +12 -9     xmldocs/bin/whatsnew-update


rev 1.3, prev_rev 1.2
Index: whatsnew-update
===================================================================
RCS file: /var/cvs/xmldocs/bin/whatsnew-update,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- whatsnew-update	4 Dec 2004 23:54:21 -0000	1.2
+++ whatsnew-update	5 Dec 2004 23:26:34 -0000	1.3
@@ -34,16 +34,16 @@
 
 # Load list of received emails in @archive
 my @archive = `test -d $archive_dir && find $archive_dir -type f -print`;
- at archive or die "No files in '$archive_dir'?\n";
+ at archive or warn "No files in '$archive_dir'?\n" and exit 0;
 chomp for @archive;
 
-# Load list of already parsed messages and delete parsed ones from %archive
-open IN, "< whatsnew/parsed" or die "Can't open whatsnew/parsed ($!)\n";
-while ($_ = <IN>) {
-	chomp;
-	@archive = grep{!/^$_$/} @archive;
-}
-close IN;
+## Load list of already parsed messages and delete parsed ones from %archive
+#open IN, "< whatsnew/parsed" or die "Can't open whatsnew/parsed ($!)\n";
+#while ($_ = <IN>) {
+#	chomp;
+#	@archive = grep{!/^$_$/} @archive;
+#}
+#close IN;
 
 # Read all messages and expand template for each
 for $_ (@archive) {
@@ -51,7 +51,7 @@
 
 	my $sect = eval "\"$template\"";
 	$final_content .= $sect;
-	print "Here's a cookie:\n$sect\n";
+	#print "Here's a cookie:\n$sect\n";
 }
 
 # Finally, update .xml
@@ -66,6 +66,9 @@
 		$_ = "$entry_string\n$final_content";
 	}
 }
+
+# And delete parsed stuff
+unlink for @archive;
 
 open OUT, "> whatsnew/whatsnew.xml";
 print OUT @wn;



1.1                  xmldocs/glossary/session


rev 1.1, prev_rev 1.0
Index: session
===================================================================

<glossentry id="session">
<glossterm>Session</glossterm>
<glossterm>User Sessions</glossterm>
<glossterm>Sessions Database</glossterm>

<!--<acronym></acronym>-->
<!--<abbrev></abbrev>-->

<glossdef>
<para>
</para>

</glossdef>

</glossentry>









More information about the docs mailing list