Commit bf663dc1 authored by Mike Gabriel's avatar Mike Gabriel

prepare for uploading a Git snapshot to Debian unstable

parent 6cbd6491
freerdp (1.1.0~git20140808.1.28f65ff-1) UNRELEASED; urgency=medium
* New Git snapshot upload to Debian.
- Obtained from stable-1.1 branch of http://github.com/FreeRDP/FreeRDP.
Using commit hash: 28f65ff297ff68c411829f2f911c920128a8aaa8.
Recommended by: Bernhard Miklautz on IRC (#freerdp channel on Freenode)
on 7th Aug 2014.
-- Mike Gabriel <sunweaver@debian.org> Fri, 08 Aug 2014 14:04:45 +0200
freerdp (1.1.0~beta1+git20130629-1) experimental; urgency=low
* Development snapshot [June 2013]. Targeted for Debian experimental.
......
......@@ -22,8 +22,35 @@ override_dh_strip:
override_dh_makeshlibs:
dh_makeshlibs -V -- -c4
override_dh_auto_clean:
dh_auto_clean
rm -f config.h
rm -f winpr/include/winpr/config.h
rm -f channels/client/tables.c
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 =
VER ?= $(subst $(DTYPE),,$(UVER))
UURL = git://github.com/FreeRDP/FreeRDP.git
UREV = $(shell echo $(VER) | cut -d"." -f5)
## http://wiki.debian.org/onlyjob/get-orig-source
.PHONY: get-orig-source
get-orig-source: $(PKG)_$(VER)$(DTYPE).orig.tar.xz $(info I: $(PKG)_$(VER)$(DTYPE))
@
$(PKG)_$(VER)$(DTYPE).orig.tar.xz: $(info I: GIT Revision=$(UREV))
$(if $(wildcard $(PKG)-$(VER)),$(error $(PKG)-$(VER) exist, aborting..))
@echo "# Downloading..."
git clone $(UURL) $(PKG)-$(VER) \
|| $(RM) -r $(PKG)-$(VER)
cd $(PKG)-$(VER) \
&& git checkout "$(UREV)" \
&& [ -s ChangeLog ] || ( echo "# Generating ChangeLog..." \
; git log --pretty="format:%ad %aN <%aE>%n%n%x09* %s%n" --date=short > ChangeLog \
; touch -d "$$(git log -1 --format='%ci')" ChangeLog) \
&& echo "# Setting times..." \
&& for F in $$(git ls-tree -r --name-only HEAD); do touch --no-dereference -d "$$(git log -1 --format="%ai" -- $$F)" "$$F"; done \
&& echo "# Cleaning-up..." \
&& $(RM) -r .git .git*
@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)"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment