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

Bug#616567: New website layout for www.d.o/devel/website/stats



Le 04/03/2011 12:41, Tobias Quathamer a écrit :
> Hi,

Hi,

> We would need a new subdirectory in webwml (devel/website/stats), with
> the attached minimal Makefile in it, nothing else.

Please, consider the attached diff to the Makefile (no need to trigger
the touch_translations.pl script when building those pages, not handled
in CVS anyway).

Please also consider the second patch to push the generated files in the
correct directory, and to actually build the pages on a normal site rebuild.

> This works for me locally. I would appreciate feedback before changing
> the script in the webwml tree.

It looks nice [0], great! Don't know if you already look at the
internationalization of those pages, but it could be handled afterward,
since your patch is already an improvement in my point of view.

0: http://www.tilapin.org/debian/devel/website/stats

Cheers

David

--- /tmp/Makefile	2011-03-06 19:39:38.000000000 -0400
+++ english/devel/website/stats/Makefile	2011-03-06 19:26:59.633856892 -0400
@@ -5,4 +5,9 @@
 CUR_DIR=devel/website/stats
 SUBS=
 
+NOGENERICDEP := true
+
 include $(WMLBASE)/Make.lang
+
+%.$(LANGUAGE).html: %.wml
+	$(WML) $(<F)
Index: stattrans.pl
===================================================================
RCS file: /cvsroot/webwml/webwml/stattrans.pl,v
retrieving revision 1.96
diff -u -r1.96 stattrans.pl
--- stattrans.pl	10 Feb 2011 02:49:05 -0000	1.96
+++ stattrans.pl	6 Mar 2011 21:37:15 -0000
@@ -42,7 +42,7 @@
 
 $| = 1;
 
-$opt_h = "/org/www.debian.org/www/devel/website/stats";
+$opt_h = "/org/www.debian.org/webwml/devel/website/stats";
 $opt_w = "/org/www.debian.org/webwml";
 $opt_p = "*.(wml|src)";
 $opt_t = "Debian web site translation statistics";

Index: english/devel/website/Makefile
===================================================================
RCS file: /cvsroot/webwml/webwml/english/devel/website/Makefile,v
retrieving revision 1.14
diff -u -r1.14 Makefile
--- english/devel/website/Makefile	6 Feb 2011 12:32:46 -0000	1.14
+++ english/devel/website/Makefile	6 Mar 2011 21:07:49 -0000
@@ -3,7 +3,7 @@
 
 WMLBASE=../..
 CUR_DIR=devel/website
-SUBS=errors
+SUBS=errors stats
 
 include $(WMLBASE)/Make.lang
 

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: