From c2207452bdf3bbca2ad1d118aa52ceca5c506733 Mon Sep 17 00:00:00 2001 From: William MARTIN Date: Tue, 22 Feb 2011 14:26:09 +0100 Subject: [PATCH] Update the POT generation in Makefile Really delete the older POT file to avoid merge with old entry --- .gitignore | 1 + Makefile | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 2cb8e6c..ddd52b8 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ src/IDF/gettexttemplates indefero-*.zip src/IDF/conf/path.php .tx/config +src/IDF/locale/idf.pot.bak diff --git a/Makefile b/Makefile index d89d527..9794118 100644 --- a/Makefile +++ b/Makefile @@ -42,7 +42,10 @@ all help: .PHONY: pot-update po-update pot-update: # Backup pot file - cd src; cp -f IDF/locale/idf.pot IDF/locale/idf.pot.bak + @if [ -e src/IDF/locale/idf.pot ]; then \ + mv -f src/IDF/locale/idf.pot src/IDF/locale/idf.pot.bak; \ + fi + touch src/IDF/locale/idf.pot; # Extract string @cd src; php $(PLUF_PATH)/extracttemplates.php IDF/conf/idf.php IDF/gettexttemplates @cd src; for phpfile in `find . -iname "*.php"`; do \