From 76ede8bd980bc969f90202b6dfbea7a063ef755d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?ChangZhuo=20Chen=20=28=E9=99=B3=E6=98=8C=E5=80=AC=29?= Date: Tue, 2 Sep 2014 14:50:07 +0800 Subject: [PATCH] Backup *.ts --- debian/rules | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/debian/rules b/debian/rules index 1f0cd8c..b4b54ed 100755 --- a/debian/rules +++ b/debian/rules @@ -2,10 +2,26 @@ #DH_VERBOSE = 1 + +TS := $(CURDIR)/pcmanfm/translations/ +TS_BAK := $(CURDIR)/debian/bak/pcmanfm/translations/ + +MKDIR := mkdir -p +CP := cp + export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed %: dh $@ +override_dh_auto_configure: + $(MKDIR) $(TS_BAK) + $(CP) $(TS)/*.ts $(TS_BAK) + dh_auto_configure + +override_dh_auto_clean: + dh_auto_clean + -$(CP) $(TS_BAK)/*.ts $(TS) + override_dh_strip: dh_strip --dbg-package=pcmanfm-qt-dbg