[freeorion] 03/33: Update get-orig-source target for Github.
Markus Koschany
apo-guest at moszumanska.debian.org
Fri Mar 27 22:27:26 UTC 2015
This is an automated email from the git hooks/post-receive script.
apo-guest pushed a commit to branch master
in repository freeorion.
commit f8998cf905bae3bc6533ce7895424b097694c917
Author: Markus Koschany <apo at gambaru.de>
Date: Thu Mar 26 22:46:57 2015 +0100
Update get-orig-source target for Github.
---
debian/rules | 43 +++++++++++++++++++++----------------------
1 file changed, 21 insertions(+), 22 deletions(-)
diff --git a/debian/rules b/debian/rules
index 706dee3..3e15e5d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,9 +5,8 @@ DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
PKD = $(abspath $(dir $(MAKEFILE_LIST)))
VER := $(shell dpkg-parsechangelog -l$(PKD)/changelog -SVersion | cut -d- -f1)
WEAK_HOSTS := armel armhf
-UURL := http://svn.code.sf.net/p/freeorion/code/branches/release-0.4.4
+UURL := https://github.com/freeorion/freeorion.git
PKG := freeorion
-REV := 7640
ifneq (,$(findstring $(DEB_HOST_ARCH),$(WEAK_HOSTS)))
MAX := 1
@@ -53,29 +52,29 @@ override_dh_python2:
## get-orig-source
## https://wiki.debian.org/onlyjob/get-orig-source
+.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:
- svn checkout --config-option config:miscellany:use-commit-times=yes -r $(REV) \
- $(UURL) $(PKG)-$(VER) \
- || $(RM) -r $(PKG)-$(VER)
- @echo "Clean-up..."
+ @echo "# Cloning upstream git repository..."
+ git clone $(UURL) $(PKG)-$(VER)
+ @echo "# Clean-up..."
cd $(PKG)-$(VER) \
- && find . -depth -name ".svn" -exec $(RM) -r '{}' \; \
- && $(RM) -r -v \
- FreeOrion/GG/libltdl \
- FreeOrion/loki_setup \
- FreeOrion/linux-static \
- FreeOrion/OIS \
- FreeOrion/client/human/OgrePlugins \
- FreeOrion/msvc2010 \
- FreeOrion/Xcode \
- FreeOrion/Installer \
- FreeOrion/default/*.ttf \
- && sed -i 's:FreeOrion_WC_REVISION ???:FreeOrion_WC_REVISION $(REV):' FreeOrion/CMakeLists.txt
- @echo "Packing..."
- find -L "$(PKG)-$(VER)" -xdev -type f -print \
- | sort | XZ_OPT="-7v" tar -caf "$(PKG)_$(VER).orig.tar.xz" -T- --owner=root --group=root --mode=a+rX \
- && $(RM) -r "$(PKG)-$(VER)"
+ && git checkout -b debiansource \ #(VER)
+ && 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 \
+ FreeOrion/msvc2010 \
+ FreeOrion/Xcode \
+ FreeOrion/Installer \
+ FreeOrion/default/*.ttf \
+ .git/
+ @echo "# Packing..."
+ find -L "$(PKG)-$(VER)" -xdev -type f -print | sort \
+ | XZ_OPT="-7v" tar -caf "$(PKG)_$(VER)$(DTYPE).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-games/freeorion.git
More information about the Pkg-games-commits
mailing list