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: Mon, 02 Jun 2008 11:15:05 +0000

CVSROOT:        /web/www
Module name:    www
Changes by:     Yavor Doganov <yavor>   08/06/02 11:15:05

Modified files:
        rss            : Makefile 

Log message:
        Delete all i18n rules which are broken anyway since the last
        reorganization.  Wrap long lines.  Capitalize commit messages.
        (gnunews.en): Rename as...
        (gnunews): ...and remove ../server from prerequsites.
        (gnunews.i18n, whatsnew.%.rss, ../server/whatsnew.%.html)
        (../gnusflashes.%.include, ../gnusflashes.polish.include): Delete.
        This functionality is now implemented in GNUN.

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

Patches:
Index: Makefile
===================================================================
RCS file: /web/www/www/rss/Makefile,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -b -r1.62 -r1.63
--- Makefile    20 Mar 2008 14:04:45 -0000      1.62
+++ Makefile    2 Jun 2008 11:14:55 -0000       1.63
@@ -28,60 +28,39 @@
 # Do all the news updates.
 all: quagga.rss gnunews
 
-# Do the main GNU stuff.
-gnunews: gnunews.en gnunews.i18n
-
-gnunews.en: ../server ../server/whatsnew.include ../gnusflashes.include 
whatsnew.rss 
-
-# Translations of news items.
-# Add your translation here if you want it to be automatically built
-# by the fencepost batch job.
-gnunews.i18n: \
-       ../server/whatsnew.it.html \
-       ../gnusflashes.it.include  \
-       whatsnew.it.rss            \
-       ../server/whatsnew.pl.html \
-       ../gnusflashes.polish.include  \
-       whatsnew.pl.rss            \
-       ../server/whatsnew.pt-br.html \
-       ../gnusflashes.pt-br.include  \
-       whatsnew.pt-br.rss                 \
-       ../server/whatsnew.ca.html \
-       ../gnusflashes.ca.include  \
-       whatsnew.ca.rss            \
-       ../server/whatsnew.sr.html \
-       ../gnusflashes.sr.include  \
-       whatsnew.sr.rss
-
+# Do the main GNU stuff.  Translations are handled by GNUN; see the
+# node "GNU News" in the web-translators documentation.
+gnunews: ../server/whatsnew.include ../gnusflashes.include whatsnew.rss 
 
 # Options for CVS commands. Set to:
 #  -n
 # if you DO NOT want commits to be performed.
 CVSOPTS=
 
-
-# Update the whole directory, not just the Makefile
+# Update the whole directory, not just the Makefile.
 Makefile:
        cvs -q update Makefile
 
-# We could make this depend on an HTTP data check
+# We could make this depend on an HTTP data check.
 .PHONY: quagga.rss
 quagga.rss: 
        ./make-rss.sh > quagga.rss
-       cvs $(CVSOPTS) ci -m "automatic update of the free software directory 
RSS" quagga.rss
+       cvs $(CVSOPTS) ci -m \
+         "Automatic update of the free software directory RSS." quagga.rss
 
 
 
 # Whatsnew update.
 whatsnew.rss: ../server/whatsnew.txt
        gawk -f ../server/news-to-xml.awk $< | xsltproc whatsnew.xslt - > $@
-       cvs $(CVSOPTS) ci -m "automatic update of the whatsnew RSS" $@
+       cvs $(CVSOPTS) ci -m "Automatic update of the whatsnew RSS." $@
 
-# This is the target that sends the email to the translators list
+# This is the target that sends the email to the translators list.
 ../server/whatsnew.include: ../server/whatsnew.txt
        $(addfile)
        head $< | mail -s "GNU news update" address@hidden
-       gawk -f ../server/news-to-xml.awk $< | xsltproc ../server/whatsnew.xslt 
- > $@
+       gawk -f ../server/news-to-xml.awk $< \
+         | xsltproc ../server/whatsnew.xslt - > $@
 # Delete declarations that are necessary for successful xsltproc
 # operation, but make whatsnew.html invalid when the target is
 # include'd in it.
@@ -90,40 +69,19 @@
 # update.  Note that this Makefile is with "Sticky Options" set to
 # "-kk" so that CVS does not expand the keywords in the expression.
        sed --in-place "s/^\$$Date.*\$$/\$$Date\$$/" ../server/whatsnew.html
-       cvs $(CVSOPTS) ci -m "automatic update of whatsnew" $@ 
../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 - > 
$@
-       cvs $(CVSOPTS) ci -m "automatic update of the GNUs flashes" $@
+       gawk -f ../server/news-to-xml.awk $< \
+         | xsltproc ../gnusflashes.xslt - > $@
+       cvs $(CVSOPTS) ci -m "Automatic update of the GNUs flashes." $@
 
 
 
-# The command sequence we use to add non-existant files to CVS
+# The command sequence we use to add non-existant files to CVS.
 define addfile
 [ -f $@ ] || ( touch $@ ; cvs $(CVSOPTS) add $@ )
 endef
 
-# New language specific targets.
-whatsnew.%.rss: ../server/whatsnew.%.txt
-       $(addfile)
-       gawk -f ../server/news-to-xml.awk $< | xsltproc whatsnew.xslt - > $@
-       cvs $(CVSOPTS) ci -m "automatic update of the whatsnew RSS" $@
-
-../server/whatsnew.%.html: ../server/whatsnew.%.txt 
-       $(addfile)
-# FIXME: Perhaps should be modified to generate whatsnew.%.include as well.
-       ENCODING=utf-8 gawk -f ../server/news-to-xml.awk $< | xsltproc 
../server/whatsnew.$*.xslt - > $@
-       cvs $(CVSOPTS) ci -m "automatic update whatsnew.html" $@
-
-../gnusflashes.%.include: ../server/whatsnew.%.txt
-       $(addfile)
-       ENCODING=utf-8 gawk -f ../server/news-to-xml.awk $< | xsltproc 
../gnusflashes.xslt - > $@
-       cvs $(CVSOPTS) ci -m "automatic update" $@
-
-# This is temporary. We need it because Apache thinks gnusflashes.pl.include 
is a Perl file.
-../gnusflashes.polish.include: ../server/whatsnew.pl.txt
-       $(addfile)
-       ENCODING=utf-8 gawk -f ../server/news-to-xml.awk $< | xsltproc 
../gnusflashes.xslt - > $@
-       cvs $(CVSOPTS) ci -m "automatic update" $@
-
 # End.




reply via email to

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