www-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

www/rss Makefile


From: Yavor Doganov
Subject: www/rss Makefile
Date: Sun, 27 Jan 2008 17:54:04 +0000

CVSROOT:        /web/www
Module name:    www
Changes by:     Yavor Doganov <yavor>   08/01/27 17:54:04

Modified files:
        rss            : Makefile 

Log message:
        (../server/whatsnew.include): Add whatsnew.html as prerequisite and
        reset its timestap, so that cvs updates it every time there is a new
        news item.

CVSWeb URLs:
http://web.cvs.savannah.gnu.org/viewcvs/www/rss/Makefile?cvsroot=www&r1=1.56&r2=1.57

Patches:
Index: Makefile
===================================================================
RCS file: /web/www/www/rss/Makefile,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -b -r1.56 -r1.57
--- Makefile    27 Jan 2008 11:14:18 -0000      1.56
+++ Makefile    27 Jan 2008 17:53:50 -0000      1.57
@@ -78,7 +78,7 @@
        cvs $(CVSOPTS) ci -m "automatic update of the whatsnew RSS" $@
 
 # This is the target that sends the email to the translators list
-../server/whatsnew.include: ../server/whatsnew.txt
+../server/whatsnew.include: ../server/whatsnew.txt ../server/whatsnew.html
        $(addfile)
        head $< | mail -s "GNU news update" address@hidden
        gawk -f ../server/news-to-xml.awk $< | xsltproc ../server/whatsnew.xslt 
- > $@
@@ -86,7 +86,9 @@
 # operation, but make whatsnew.html invalid when the target is
 # include'd in it.
        sed --in-place "/<?xml\|<\!DOCTYPE/D" $@
-       cvs $(CVSOPTS) ci -m "automatic update of the whatsnew.include" $@
+# Trick CVS to update the $Date keyword to match the last news update.
+       sed --in-place "s/^\$Date.*\$/\$Date: 2008/01/27 17:53:50 $/" 
../server/whatsnew.html
+       cvs $(CVSOPTS) ci -m "automatic update of whatsnew" $@ 
../server/whatsnew.html
 
 ../gnusflashes.include: ../server/whatsnew.txt
        gawk -f ../server/news-to-xml.awk $< | xsltproc ../gnusflashes.xslt - > 
$@




reply via email to

[Prev in Thread] Current Thread [Next in Thread]