This is an automated email from the git hooks/post-receive script.

apo-guest pushed a commit to branch master
in repository robocode.

commit cb4e6713f11d921d1902345eff3432d262f34b71
Author: Markus Koschany <[email protected]>
Date:   Tue Jan 5 07:54:53 2016 +0100

    Update get-orig-source target.
    
    Package the github releases but watch the sourceforge.net versions.
    
    Reason: The sourceforge.net releases are corrupted (probably uploaded with 
the
    wrong FTP mode). The github releases are O.K. but the latest version has not
    been tagged yet.
---
 debian/rules | 23 +++++++++++++++++++++--
 1 file changed, 21 insertions(+), 2 deletions(-)

diff --git a/debian/rules b/debian/rules
index ec19a35..f466be8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,8 @@
 #!/usr/bin/make -f
 PKD := $(abspath $(dir $(MAKEFILE_LIST)))
 VER := $(shell dpkg-parsechangelog -l$(PKD)/changelog -SVersion | cut -d- -f1)
+PKG := robocode
+COMMIT := 3286f2832c46ff86b46a260f4582ee92698b8ba8
 
 %:
        dh $@ --parallel --buildsystem=maven
@@ -21,6 +23,23 @@ override_dh_install:
                robocode.content/src/main/resources/desktop/robocode.png 
robocode.xpm
        dh_install
 
-get-orig-source:
-       uscan --verbose --download-current-version --force-download --repack 
--compression xz
+.PHONY: get-orig-source
+## http://wiki.debian.org/onlyjob/get-orig-source
+get-orig-source: $(PKG)_$(VER).orig.tar.xz
+       @
 
+$(PKG)_$(VER).orig.tar.xz:
+       @echo "# Cloning upstream git repository..."
+       git clone https://github.com/robo-code/robocode.git $(PKG)-$(VER)
+       @echo "# Clean-up..."
+       cd $(PKG)-$(VER) \
+       && git checkout -b debiansource $(COMMIT) \
+       && for F in $$(git ls-tree -r --name-only HEAD); \
+       do touch --no-dereference -d "$$(git log -1 --format="%ai" -- "$$F")" 
"$$F"; done \
+       && $(RM) -r -v \
+               .git/ \
+               .gitignore
+       @echo "# Packing..."
+       find -L "$(PKG)-$(VER)" -xdev -type f -print | sort \
+       | XZ_OPT="-6v" tar -caf "$(PKG)_$(VER).orig.tar.xz" -T- --owner=root 
--group=root --mode=a+rX \
+       && $(RM) -r "$(PKG)-$(VER)"

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-java/robocode.git

_______________________________________________
pkg-java-commits mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits

Reply via email to