[Python-modules-commits] r11428 - in packages/python-html2text/trunk/debian (rules)
stefanor-guest at users.alioth.debian.org
stefanor-guest at users.alioth.debian.org
Fri Jan 29 21:42:48 UTC 2010
Date: Friday, January 29, 2010 @ 21:42:48
Author: stefanor-guest
Revision: 11428
Tidy variables for get-orig-source
Modified:
packages/python-html2text/trunk/debian/rules
Modified: packages/python-html2text/trunk/debian/rules
===================================================================
--- packages/python-html2text/trunk/debian/rules 2010-01-29 21:31:41 UTC (rev 11427)
+++ packages/python-html2text/trunk/debian/rules 2010-01-29 21:42:48 UTC (rev 11428)
@@ -5,12 +5,12 @@
# Mangling version is necessary, as upstream pretends that 2.2 < 2.29 < 2.291 < 2.3
# We put a dot between every digit of the minor number.
-export VER=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p')
+VER=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p')
+UVER=$(shell echo '$(VER)' | sed -e 's/[.]/\#/' | tr -d '.' | tr '\#' '.')
get-orig-source:
- UVER=$(shell echo $(VER) | sed -e 's/[.]/#/' | tr -d . | tr '#' '.'); \
- uscan --noconf --force-download --rename --download-version=$$VER --destdir=.; \
- mkdir html2text-$$VER; \
- mv html2text-$$UVER.py html2text-$$VER/html2text.py; \
- tar -czf python-html2text_$$VER.orig.tar.gz html2text-$$VER; \
- rm -rf html2text-$$VER
+ uscan --noconf --force-download --rename --download-version=$(VER) --destdir=.; \
+ mkdir html2text-$(VER); \
+ mv html2text-$(UVER).py html2text-$(VER)/html2text.py; \
+ tar -czf python-html2text_$(VER).orig.tar.gz html2text-$(VER); \
+ rm -rf html2text-$(VER)
More information about the Python-modules-commits
mailing list