summaryrefslogtreecommitdiffstats
path: root/kdeprint/descriptions/Makefile.am
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit4aed2c8219774f5d797760606b8489a92ddc5163 (patch)
tree3f8c130f7d269626bf6a9447407ef6c35954426a /kdeprint/descriptions/Makefile.am
downloadtdebase-4aed2c8219774f5d797760606b8489a92ddc5163.tar.gz
tdebase-4aed2c8219774f5d797760606b8489a92ddc5163.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeprint/descriptions/Makefile.am')
-rw-r--r--kdeprint/descriptions/Makefile.am24
1 files changed, 24 insertions, 0 deletions
diff --git a/kdeprint/descriptions/Makefile.am b/kdeprint/descriptions/Makefile.am
new file mode 100644
index 000000000..b8b0bd95a
--- /dev/null
+++ b/kdeprint/descriptions/Makefile.am
@@ -0,0 +1,24 @@
+KDE_OPTIONS = qtonly
+# Note: sortthem does not sort! (It is just a sort of uniq(1)
+
+INCLUDES = $(all_includes)
+
+EXTRA_PROGRAMS = sortthem
+
+sortthem_SOURCES = sortthem.cpp
+sortthem_LDFLAGS = $(all_libraries) $(LIB_QT)
+
+printers.cpp: sortthem
+ : > printers.cpp
+ for i in `find /usr/share/cups/model -type f ! -name '*.gz'`; do perl $(srcdir)/readppd < $$i >> printers.cpp; done
+ for i in `find /usr/share/cups/model -type f -name '*.gz'`; do \
+ gzip -cd $$i | perl $(srcdir)/readppd >> printers.cpp; done
+ iconv -flatin1 -tutf-8 printers.cpp | grep -v '"[-0-9][0-9]*")' > printers.new
+ mv printers.new printers.cpp
+ ./sortthem < printers.cpp | perl -n -e "print \"// xgettext: no-c-format\n\".\$$_;" > printers.new && mv printers.new $(srcdir)/printers.cpp
+
+messages:
+ $(XGETTEXT) printers.cpp -o $(podir)/../kdelibs/ppdtranslations.pot
+
+.PHONY: printers.cpp
+