[Python-apps-commits] r5049 - in packages/eric/trunk/debian (changelog i18n rules)

gudjon-guest at users.alioth.debian.org gudjon-guest at users.alioth.debian.org
Sun Mar 28 21:43:35 UTC 2010


    Date: Sunday, March 28, 2010 @ 21:43:33
  Author: gudjon-guest
Revision: 5049

Change to multiple source format and added a get-orig-source target

Modified:
  packages/eric/trunk/debian/changelog
  packages/eric/trunk/debian/rules
Deleted:
  packages/eric/trunk/debian/i18n/

Modified: packages/eric/trunk/debian/changelog
===================================================================
--- packages/eric/trunk/debian/changelog	2010-03-28 21:37:01 UTC (rev 5048)
+++ packages/eric/trunk/debian/changelog	2010-03-28 21:43:33 UTC (rev 5049)
@@ -4,8 +4,10 @@
   * Fix patch 03_disable-update-warning
   * Add Italian translation
   * Bump python-all and XS-Python-Version to >=2.5
+  * Change translations to multiple source format
+  * Make a get-orig-source target
 
- -- Gudjon I. Gudjonsson <gudjon at gudjon.org>  Sun, 28 Mar 2010 17:04:39 +0200
+ -- Gudjon I. Gudjonsson <gudjon at gudjon.org>  Sun, 28 Mar 2010 23:41:51 +0200
 
 eric (4.4.1-1) unstable; urgency=low
 

Modified: packages/eric/trunk/debian/rules
===================================================================
--- packages/eric/trunk/debian/rules	2010-03-28 21:37:01 UTC (rev 5048)
+++ packages/eric/trunk/debian/rules	2010-03-28 21:43:33 UTC (rev 5049)
@@ -4,6 +4,7 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+
 ERICDIR=debian/eric/usr/share/eric/modules
 QTAPIFILE=debian/apis/pyqt.api
 KDEAPIFILE=debian/apis/pykde.api
@@ -11,6 +12,7 @@
 APIFILES=$(QTAPIFILE)
 # $(KDEAPIFILE)
 # $(PYTHONAPIFILE)
+LAN=cs de es fr it ru tr zh_CN.GB2312
 
 clean:
 	dh_testdir
@@ -43,7 +45,7 @@
 	python install.py -i debian/eric -x -c -f debian/eric4config.debian
 	dh_installdirs -i
 
-	for i in debian/i18n/*.ts; do\
+	for i in transl_*/eric/i18n/*.ts; do\
 		lrelease-qt4 $$i -qm debian/eric/usr/share/qt4/translations/`basename $$i .ts`.qm;\
 	done
 
@@ -85,4 +87,21 @@
 	dh_md5sums -i
 	dh_builddeb -i
 
+get-orig-source:
+	VER=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-+~]+).*,\1,p'); \
+	rm -rf eric-$$VER; \
+	wget http://sourceforge.net/projects/eric-ide/files/eric4/stable/$$VER/eric4-$$VER.tar.gz/download; \
+	ln -s eric4-$$VER.tar.gz eric_$$VER.orig.tar.gz; \
+	tar xzf eric4-$$VER.tar.gz; \
+	mv eric4-$$VER eric-$$VER; \
+	set -e; for L in ${LAN};\
+	do\
+	 wget http://sourceforge.net/projects/eric-ide/files/eric4/stable/$$VER/eric4-i18n-$$L-$$VER.tar.gz/download; \
+	 ln -s eric4-i18n-$$L-$$VER.tar.gz eric_$$VER.orig-transl_$$L.tar.gz; \
+	 tar xzf eric4-i18n-$$L-$$VER.tar.gz; \
+	 mv eric4-$$VER eric-$$VER/transl_$$L; \
+	done; \
+	mv eric_$$VER.orig-transl_zh_CN.GB2312.tar.gz eric_$$VER.orig-transl_zh_CN_GB2312.tar.gz; \
+	mv eric-$$VER/transl_zh_CN.GB2312 eric-$$VER/transl_zh_CN_GB2312
+
 .PHONY: clean binary-indep binary-arch binary install




More information about the Python-apps-commits mailing list