[easymock] 04/37: Update get-orig-source target.
Markus Koschany
apo at moszumanska.debian.org
Fri Oct 7 17:33:33 UTC 2016
This is an automated email from the git hooks/post-receive script.
apo pushed a commit to branch master
in repository easymock.
commit 5175fc84f61625ac0057f3cfae77104a83794fe8
Author: Markus Koschany <apo at debian.org>
Date: Fri Oct 7 12:13:37 2016 +0200
Update get-orig-source target.
---
debian/rules | 42 ++----------------------------------------
1 file changed, 2 insertions(+), 40 deletions(-)
diff --git a/debian/rules b/debian/rules
index 2bae49e..2c7bb80 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,43 +16,5 @@ override_dh_auto_clean:
dh_auto_clean
ant -f $(CURDIR)/debian/build.xml clean
-.PHONY: get-orig-source
-## http://wiki.debian.org/onlyjob/get-orig-source
-get-orig-source: $(PKG)_$(VER)$(DTYPE).orig.tar.xz $(info I: $(PKG)_$(VER)$(DTYPE))
- @
-
-$(PKG)-$(VER):
- @echo "# Downloading..."
- uscan --noconf --verbose --rename --repack --destdir=$(CURDIR) --check-dirname-level=0 --force-download --download-version $(VER) $(PKD)
- @echo "# Extracting..."
- mkdir -p \
- $(PKG)-$(VER)-PRE \
- $(PKG)-$(VER)/src \
- $(PKG)-$(VER)/samples \
- $(PKG)-$(VER)/tests \
- && tar -xf $(PKG)_$(VER).orig.tar.* --directory $(PKG)-$(VER)-PRE --strip-components 1 \
- || $(RM) -r $(PKG)-$(VER)-PRE
- unzip $(PKG)-$(VER)-PRE/easymock-$(VER)-sources.jar -d $(PKG)-$(VER)/src
- unzip $(PKG)-$(VER)-PRE/easymock-$(VER)-samples.jar -d $(PKG)-$(VER)/samples
- unzip $(PKG)-$(VER)-PRE/easymock-$(VER)-tests.jar -d $(PKG)-$(VER)/tests
- @echo "# Cleaning-up..."
- $(RM) -r -v \
- $(PKG)-$(VER)-PRE/*.jar
- cp -v $(PKG)-$(VER)-PRE/* $(PKG)-$(VER)
- cd $(PKG)-$(VER) \
- && $(RM) -r -v \
- samples/META-INF/ \
- tests/META-INF/ \
- src/META-INF/ \
- && find . -depth -type f -name "*.class" -exec $(RM) '{}' \;
-
-$(PKG)_$(VER)$(DTYPE).orig.tar.xz: $(PKG)-$(VER)
- @echo "# Packing..."
- find -L "$(PKG)-$(VER)" -xdev -type f -print | sort \
- | XZ_OPT="-6v" tar -caf "$(PKG)_$(VER)$(DTYPE).orig.tar.xz" -T- --owner=root --group=root --mode=a+rX \
- && $(RM) -r "$(PKG)-$(VER)" "$(PKG)-$(VER)-PRE"
-
-
-get-orig-pom:
- wget -O debian/pom.xml \
- http://repo1.maven.org/maven2/org/easymock/easymock/$(VER)/easymock-$(VER).pom
+get-orig-source:
+ uscan --download-current-version --force-download --repack --compression xz
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/easymock.git
More information about the pkg-java-commits
mailing list