[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
www/server/gnun GNUmakefile
From: |
Yavor Doganov |
Subject: |
www/server/gnun GNUmakefile |
Date: |
Fri, 13 Jun 2008 15:12:11 +0000 |
CVSROOT: /web/www
Module name: www
Changes by: Yavor Doganov <yavor> 08/06/13 15:12:11
Modified files:
server/gnun : GNUmakefile
Log message:
Workaround a file permissions problem affecting www.
(fixperm): New variable, containing the command to make the target
writable.
($(rootdir)/gnusflashes.%.include, $(rootdir)/po/home.pot)
($(rootdir)/po/home.$(1).po, $(rootdir)/home.$(1).shtml)
($(1).pot, $(1).po, $(subst /po/,/,$(1).html)): Use it.
CVSWeb URLs:
http://web.cvs.savannah.gnu.org/viewcvs/www/server/gnun/GNUmakefile?cvsroot=www&r1=1.1&r2=1.2
Patches:
Index: GNUmakefile
===================================================================
RCS file: /web/www/www/server/gnun/GNUmakefile,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- GNUmakefile 13 Jun 2008 09:19:50 -0000 1.1
+++ GNUmakefile 13 Jun 2008 15:11:53 -0000 1.2
@@ -176,6 +176,14 @@
"[GNUN Error] Incompatible change in $(subst $(rootdir)/,,$<)"
endef
+# The command to restore the necessary write permissions of the
+# target. This is a workaround for a CVS quirk that affects only the
+# `www' repository. Hopefully this is a temporary solution.
+#
http://lists.gnu.org/archive/html/savannah-hackers-public/2008-06/msg00046.html
+define fixperm
+chmod +w $@
+endef
+
# Ensure that generic.LANG.html is always present for the homepage and
# articles' generation.
@@ -300,6 +308,7 @@
[ -f $@ ] || (touch $@ ; $(CVSSKIP) $(CVS) add $@ \
&& ([ ! -f $(rootdir)/home.$*.shtml ] \
|| touch $(rootdir)/po/home.$*.po))
+ $(fixperm)
echo "<!--Automatically generated by GNUN; do not edit!-->" > $@
grep --max-count=3 '<dd>.*</dd>' $< >> $@
$(SED) --in-place "s/\(\/\?\)dd>/\1p>/g" $@ || (touch $< ; exit 1)
@@ -363,11 +372,13 @@
$(rootdir)/po/home.pot: $(rootdir)/po/home.proto
$(addfile)
+ $(fixperm)
$(generate-pot)
define home-rules
$(rootdir)/po/home.$(1).po: $(rootdir)/po/home.pot
PO=$$@ ; $(check-po)
+ $$(fixperm)
$(update-po)
$(rootdir)/home.$(1).shtml: $(rootdir)/po/home.proto \
@@ -377,6 +388,7 @@
# for the reader. Ensure that the build still barfs next time if the
# translator doesn't fix it quickly.
PO=$(rootdir)/po/home.$(1).po ; $(check-po) || (touch $$$$PO ; exit 1)
+ $$(fixperm)
PO=$(rootdir)/po/home.$(1).po OUT=$(rootdir)/po/home.$(1).m4 ; \
$(generate-html)
$(SED) --in-place \
@@ -421,12 +433,14 @@
$(1).pot: $(1).proto
$$(addfile)
+ $$(fixperm)
$$(generate-pot)
endef
define article-rules
$(1).po: $(basename $(1)).pot
PO=$$@ ; $(check-po)
+ $$(fixperm)
$(update-po)
$(subst /po/,/,$(1).html): $(basename $(1)).proto $(basename $(1)).translinks \
@@ -448,6 +462,9 @@
endif
$$(addfile)
PO=$(1).po ; $(check-po) || (touch $$$$PO ; exit 1)
+# This is needed for only a few articles, but as it is harmless there
+# is no real need to determine them and run the command conditionally.
+ $$(fixperm)
PO=$(1).po OUT=$(1).m4 ; $(generate-html)
$(SED) --in-place \
"s/\(<gnun>include(\`.*\)\([.]html')<\/gnun>\)/\1.$(2)\2/g" $(1).m4
- www/server/gnun GNUmakefile,
Yavor Doganov <=