Permalink
Browse files

Update debian/rules to adapt new po/ path

  • Loading branch information...
1 parent 8ccd4fa commit 529c70a162904a947145064fd426b24c74879084 @StephenPCG StephenPCG committed Dec 30, 2011
Showing with 6 additions and 9 deletions.
  1. +0 −4 debian/install
  2. +1 −0 debian/links
  3. +5 −5 debian/rules
View
4 debian/install
@@ -1,6 +1,2 @@
src /usr/share/deepin-scrot
theme /usr/share/deepin-scrot
-AUTHORS /usr/share/deepin-scrot
-ChangeLog /usr/share/deepin-scrot
-README /usr/share/deepin-scrot
-COPYING /usr/share/deepin-scrot
View
1 debian/links
@@ -1 +1,2 @@
usr/share/deepin-scrot/src/deepin-scrot usr/bin/deepin-scrot
+usr/share/deepin-scrot/locale/en_US usr/share/deepin-scrot/locale/default
View
10 debian/rules
@@ -4,9 +4,9 @@
override_dh_installdirs:
dh_installdirs
- for pofile in locale/*/LC_MESSAGES/*.po; do \
- f=`basename $$pofile .po`; \
- d=`dirname $$pofile`; \
- mkdir -p debian/deepin-scrot/usr/share/deepin-scrot/$$d/; \
- msgfmt $$pofile -o debian/deepin-scrot/usr/share/deepin-scrot/$$d/$$f.mo; \
+ for pofile in po/*.po; do \
+ lang=`basename $$pofile .po`; \
+ dest="debian/deepin-scrot/usr/share/deepin-scrot/locale/$$lang/LC_MESSAGES"; \
+ mkdir -p $$dest; \
+ msgfmt $$pofile -o $$dest/deepin-scrot.mo; \
done

0 comments on commit 529c70a

Please sign in to comment.