[med-svn] r18191 - trunk/packages/mrs/trunk/debian
Andreas Tille
tille at moszumanska.debian.org
Thu Oct 2 08:40:32 UTC 2014
Author: tille
Date: 2014-10-02 08:40:27 +0000 (Thu, 02 Oct 2014)
New Revision: 18191
Modified:
trunk/packages/mrs/trunk/debian/rules
Log:
Remove unneeded code to create source tarball
Modified: trunk/packages/mrs/trunk/debian/rules
===================================================================
--- trunk/packages/mrs/trunk/debian/rules 2014-10-02 08:37:58 UTC (rev 18190)
+++ trunk/packages/mrs/trunk/debian/rules 2014-10-02 08:40:27 UTC (rev 18191)
@@ -13,36 +13,5 @@
override_dh_auto_build:
make
-PKD = $(abspath $(dir $(MAKEFILE_LIST)))
-PKG = $(word 2,$(shell dpkg-parsechangelog -l$(PKD)/changelog | grep ^Source))
-UVER = $(shell dpkg-parsechangelog -l$(PKD)/changelog | perl -ne 'print $$1 if m{^Version:\s+(?:\d+:)?(\d.*)(?:\-\d+.*)};')
-DTYPE = +dfsg
-VER ?= $(subst $(DTYPE),,$(UVER))
-
-$(PKG)_$(VER)$(DTYPE).orig.tar.xz:
- @echo "# Downloading..."
- mkdir -p ../tarballs
- uscan --noconf --verbose --rename --destdir=../tarballs --check-dirname-level=0 --force-download --download-version $(VER) $(PKD)
- $(if $(wildcard $(PKG)-$(VER)),$(error $(PKG)-$(VER) exist, aborting..))
- @echo "# Extracting..."
- cd ../tarballs && mkdir $(PKG)-$(VER) \
- && tar -xf $(PKG)_$(VER).orig.tar.bz2 --directory $(PKG)-$(VER) --strip-components 1 \
- || $(RM) -r $(PKG)-$(VER)
- echo "# Cleaning-up..."
- cd ../tarballs/$(PKG)-$(VER) \
- && $(RM) -r -v \
- msvc \
- docroot/scripts/jquery \
- docroot/scripts/jquery-ui \
- docroot/css/base \
- docroot/css/images \
- docroot/css/jquery-ui.css \
- docroot/css/theme
- #$(RM) -v $(PKG)_$(VER).orig.tar.*
- @echo "# Packing..."
- cd ../tarballs && find -L "$(PKG)-$(VER)" -xdev -type f -print | sort \
- | XZ_OPT="-6v" tar -caf "../tarballs/$(PKG)_$(VER)$(DTYPE).orig.tar.xz" -T- --owner=root --group=root --mode=a+rX \
- && $(RM) -r "../tarballs/$(PKG)-$(VER)"
-
get-orig-source:
uscan --verbose --force-download --repack --compress xz
More information about the debian-med-commit
mailing list