trans-coord-devel
[Top][All Lists]
Advanced

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

trans-coord/gnun/prep/gnun ChangeLog GNUmakefile


From: Yavor Doganov
Subject: trans-coord/gnun/prep/gnun ChangeLog GNUmakefile
Date: Sat, 26 Jan 2008 13:45:10 +0000

CVSROOT:        /cvsroot/trans-coord
Module name:    trans-coord
Changes by:     Yavor Doganov <yavor>   08/01/26 13:45:10

Modified files:
        gnun/prep/gnun : ChangeLog GNUmakefile 

Log message:
        (sync): Use a different solution in the recipe, since a static pattern
        rule seems hard to implement.
        (files-to-sync, abs-files-to-sync): New variables.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/prep/gnun/ChangeLog?cvsroot=trans-coord&r1=1.4&r2=1.5
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/prep/gnun/GNUmakefile?cvsroot=trans-coord&r1=1.3&r2=1.4

Patches:
Index: ChangeLog
===================================================================
RCS file: /cvsroot/trans-coord/trans-coord/gnun/prep/gnun/ChangeLog,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- ChangeLog   26 Jan 2008 09:12:48 -0000      1.4
+++ ChangeLog   26 Jan 2008 13:45:09 -0000      1.5
@@ -5,6 +5,7 @@
        hardcoded.
        * GNUmakefile (sync): New Phony target.
        (wwwdir, orig-templates, orig-articles): New variables.
+       (files-to-sync, abs-files-to-sync): Likewise.
 
 2008-01-14  Yavor Doganov  <address@hidden>
 

Index: GNUmakefile
===================================================================
RCS file: /cvsroot/trans-coord/trans-coord/gnun/prep/gnun/GNUmakefile,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- GNUmakefile 26 Jan 2008 09:12:48 -0000      1.3
+++ GNUmakefile 26 Jan 2008 13:45:09 -0000      1.4
@@ -241,8 +241,11 @@
 wwwdir := $(rootdir)/$(rootdir)/www
 orig-templates := $(addsuffix .html,$(template_translated_base))
 orig-articles := $(addsuffix .html,$(subst /po/,/,$(ALL_BASE)))
+files-to-sync := $(rootdir)/home.shtml $(orig-templates) $(orig-articles)
+abs-files-to-sync := $(subst $(rootdir)/,,$(files-to-sync))
 
 .PHONY: sync
-sync: $(rootdir)/home.shtml $(orig-templates) $(orig-articles)
-       cp -p --update $(subst $(rootdir),$(wwwdir),$<) $<
-       cvs commit -m "Automatic sync from the master `www' repository"
+sync: 
+       for file in $(abs-files-to-sync) ; do \
+         cp -p --update $(wwdir)/$$file $(rootdir)/$$file ; done
+       cvs commit -m "Automatic sync from the master www repository"




reply via email to

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