[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[www-el-commits] www-el GNUmakefile
From: |
Georgios Zarkadas |
Subject: |
[www-el-commits] www-el GNUmakefile |
Date: |
Sun, 06 Feb 2011 22:19:53 +0000 |
CVSROOT: /cvsroot/www-el
Module name: www-el
Changes by: Georgios Zarkadas <gzarkadas> 11/02/06 22:19:53
Modified files:
. : GNUmakefile
Log message:
debugged new publish script; added excluded subdirectories var
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/www-el/GNUmakefile?cvsroot=www-el&r1=1.12&r2=1.13
Patches:
Index: GNUmakefile
===================================================================
RCS file: /cvsroot/www-el/www-el/GNUmakefile,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- GNUmakefile 6 Feb 2011 21:44:27 -0000 1.12
+++ GNUmakefile 6 Feb 2011 22:19:53 -0000 1.13
@@ -63,15 +63,17 @@
EXCLUDED := -not -path './__tools__/*'
# FIXME: this is too hack-ish; please improve
+# Mappings: . -> $ | _ -> ' | {\`} -> ` | {^ } -> \n
define commit_header
#!/bin/sh^\
# Auto-generated by team GNUmakefile^\
# Commits currently published team po files^\
-cvs commit -m ".@" `cat <<< '
+^\
+cvs commit -m ".@" \`cat <<< _
endef
define commit_footer
-' | tr '\n' ' '`
+_ | tr _\n_ _ _\`
endef
# Additions by www-el team <end>
@@ -216,8 +218,8 @@
@echo Copying edited .po files back to $(wwwdir):
# Additions by www-el team <start>
# Creation of a cvs auto-commit script in $(wwwdir) for published files.
- @cat <<< '$(commit_header)' \
- | sed 's/\./\$$/g' | sed 's/\^ /\n/g' > $(commitfile)
+ @cat <<< '$(commit_header)' | tr "._" "$$'" \
+ | sed -e 's/\^ /\n/g' -e 's/\\`/`/g' > $(commitfile)
@for file in $(translations); do \
wwwfdir=$(wwwdir)`dirname $$file`/po; \
wwwfpot=$${wwwfdir}/`basename $${file/.$(TEAM).po/.pot}`; \
@@ -237,8 +239,8 @@
fi; \
fi; \
done
- @cat <<< '$(commit_footer)' \
- | sed 's/\./\$$/g' | sed 's/\^ /\n/g' >> $(commitfile)
+ @cat <<< '$(commit_footer)' | tr "._" "$$'" \
+ | sed -e 's/\^ /\n/g' -e 's/\\`/`/g' >> $(commitfile)
@chmod u+x $(commitfile)
# Additions by www-el team <end>