[ocrfeeder] Add ocrfeeder.desktop.in and generation of ocrfeeder.desktop



commit 746ee0f812f7b63e660fecae6b2f28a6b052baa0
Author: Joaquim Rocha <jrocha igalia com>
Date:   Wed Mar 10 12:30:32 2010 +0100

    Add ocrfeeder.desktop.in and generation of ocrfeeder.desktop

 Makefile                                           |    8 ++++++--
 po/POTFILES.in                                     |    1 +
 .../{ocrfeeder.desktop => ocrfeeder.desktop.in}    |    4 ++--
 3 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/Makefile b/Makefile
index 2d10fa2..2e9e256 100644
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,7 @@ BUILDIR=$(CURDIR)/debian/ocrfeeder
 PROJECT=ocrfeeder
 PO_DIR=po
 LINGUAS=$(shell cat $(PO_DIR)/LINGUAS)
+RESOURCES_DIR=resources
 VERSION=0.6.1
 
 all:
@@ -28,7 +29,10 @@ update-po: $(PO_DIR)/$(PROJECT).pot
 
 generate-mo: $(patsubst %,$(PO_DIR)/%.mo,$(LINGUAS))
 
-i18n: po/$(PROJECT).pot update-po generate-mo 
+$(RESOURCES_DIR)/$(PROJECT).desktop: $(RESOURCES_DIR)/$(PROJECT).desktop.in $(PO_DIR)/*.po
+	@intltool-merge -d $(PO_DIR) $(RESOURCES_DIR)/$(PROJECT).desktop.in $(RESOURCES_DIR)/$(PROJECT).desktop
+
+i18n: po/$(PROJECT).pot update-po generate-mo $(RESOURCES_DIR)/$(PROJECT).desktop
 
 source: i18n
 	$(PYTHON) setup.py sdist $(COMPILE)
@@ -51,7 +55,7 @@ clean:
 	$(PYTHON) setup.py clean
 	$(MAKE) -f $(CURDIR)/debian/rules clean
 	rm -rf build/ MANIFEST
-	rm -rf locale po/$(PROJECT).pot
+	rm -rf locale po/$(PROJECT).pot $(RESOURCES_DIR)/$(PROJECT).desktop
 	find . -name '*.pyc' -delete
 
 generatepot:
diff --git a/po/POTFILES.in b/po/POTFILES.in
index fe74a4b..03d0359 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -15,3 +15,4 @@ util/cliutils.py
 util/constants.py
 util/graphics.py
 util/lib.py
+resources/ocrfeeder.desktop.in
\ No newline at end of file
diff --git a/resources/ocrfeeder.desktop b/resources/ocrfeeder.desktop.in
similarity index 80%
rename from resources/ocrfeeder.desktop
rename to resources/ocrfeeder.desktop.in
index 9bb1a67..201017f 100644
--- a/resources/ocrfeeder.desktop
+++ b/resources/ocrfeeder.desktop.in
@@ -1,8 +1,8 @@
 [Desktop Entry]
 Version=0.5
 Type=Application
-Name=OCRFeeder
-Comment=The complete OCR suite.
+_Name=OCRFeeder
+_Comment=The complete OCR suite.
 TryExec=ocrfeeder
 Exec=ocrfeeder
 Icon=ocrfeeder



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