[Python-modules-commits] r18928 - in packages/sphinx/trunk/debian (rules)
jwilk at users.alioth.debian.org
jwilk at users.alioth.debian.org
Sat Oct 15 13:16:02 UTC 2011
Date: Saturday, October 15, 2011 @ 13:16:01
Author: jwilk
Revision: 18928
Simplify the code to move translations around even more.
Modified:
packages/sphinx/trunk/debian/rules
Modified: packages/sphinx/trunk/debian/rules
===================================================================
--- packages/sphinx/trunk/debian/rules 2011-10-15 13:04:42 UTC (rev 18927)
+++ packages/sphinx/trunk/debian/rules 2011-10-15 13:16:01 UTC (rev 18928)
@@ -58,15 +58,12 @@
for lang in $$(find .$(site_packages)/sphinx/locale \
-maxdepth 1 -mindepth 1 -type d -printf "%f "); \
do \
- mkdir -p usr/share/sphinx/locale/$$lang/; \
- mkdir -p usr/share/locale/$$lang/LC_MESSAGES/; \
- mv -t usr/share/sphinx/locale/$$lang/ \
- .$(site_packages)/sphinx/locale/$$lang/LC_MESSAGES/sphinx.js; \
- mv -t usr/share/locale/$$lang/LC_MESSAGES/ \
- .$(site_packages)/sphinx/locale/$$lang/LC_MESSAGES/sphinx.mo; \
- rm -rf .$(site_packages)/sphinx/locale/$$lang; \
+ install -m 644 -D .$(site_packages)/sphinx/locale/$$lang/LC_MESSAGES/sphinx.js \
+ usr/share/sphinx/locale/$$lang/sphinx.js; \
+ install -m 644 -D .$(site_packages)/sphinx/locale/$$lang/LC_MESSAGES/sphinx.mo \
+ usr/share/locale/$$lang/LC_MESSAGES/sphinx.mo; \
done
- rm -f $(debroot)$(site_packages)/sphinx/locale/sphinx.pot
+ cd $(debroot)$(site_packages)/sphinx/locale && rm -rf sphinx.pot */
# install scripts not touched by easy install
set -e -x; \
for script in sphinx-*.py; do \
More information about the Python-modules-commits
mailing list