[ekg2-commit] ekg2: Makefile.am (HEAD) [peres]

CVS commit cvs w amba.bydg.pdi.net
Wto, 27 Lut 2007, 21:54:53 CET


Module name:	ekg2
Changes by:	peres	07/02/27 21:54:20

Modified files:
	Makefile.am

Log message:
Automagical documentation charset conversion, using iconv. Maybe that's not the
best way it could be done, but I'm no autotools-necromancer. Tested using
chmod a-x `which iconv`, shouldn't make any problems on systems without iconv.
The only (small) issue is that conversion is done always if iconv is available,
independently of --enable-unicode. Hope noone'd crucify me for doing this ( ;.

Index: Makefile.am
===================================================================
RCS file: /home/cvs/ekg2/plugins/sms/Makefile.am,v
diff -d -u -r1.13 -r1.14
--- Makefile.am	10 Feb 2007 12:29:22 -0000	1.13
+++ Makefile.am	27 Feb 2007 20:54:18 -0000	1.14
@@ -9,4 +9,5 @@
 install-data-am:
 	mkdir -p $(DESTDIR)$(pkgdatadir)/plugins/sms/
 	$(INSTALL) -m 644 $(EXTRA_DIST) $(DESTDIR)$(pkgdatadir)/plugins/sms/
+	which iconv >/dev/null 2>&1 && for FILE in $(EXTRA_DIST); do iconv -f iso-8859-2 -t utf-8 $$FILE > $(DESTDIR)$(pkgdatadir)/plugins/sms/`basename $$FILE .txt`-utf.txt; done || true
 


Więcej informacji o liście dyskusyjnej ekg2-commit