Skip to content
Snippets Groups Projects
Commit e8a6f56d authored by Thibault Cohen's avatar Thibault Cohen
Browse files

Add get-orig-source directive

Change-Id: Idccb105f54ad5835db645dd27375dd05f49868d4
parent 8ba0e562
Branches
No related tags found
No related merge requests found
#!/usr/bin/make -f
PKD = $(abspath $(dir $(MAKEFILE_LIST)))
#PKG = $(word 2,$(shell dpkg-parsechangelog -l$(PKD)/changelog --show-field=Source))
PKG = $(shell dpkg-parsechangelog -l$(PKD)/changelog --show-field=Source)
VER ?= $(shell dpkg-parsechangelog -l$(PKD)/changelog | perl -ne 'print $$1 if m{^Version:\s+(?:\d+:)?(\d.*)(?:\-\d+.*)};')
DISTRIB_RELEASE = $(shell grep -hPo "DISTRIB_RELEASE=\K.*" /etc/*ease)
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
......@@ -34,3 +41,12 @@ override_dh_auto_install:
mv $(CURDIR)/debian/ring-daemon/usr/include/dring/* $(CURDIR)/debian/ring-daemon-dev/usr/include/dring
rm -rf $(CURDIR)/debian/ring-daemon/usr/include/
dh_auto_install
get-orig-source:
# Daemon
git fetch --all
git merge origin master --no-edit
# Packing
@echo "# Packing ... "
find . | sort \
| XZ_OPT="-6v" tar -caf "../$(PKG)_$(VER)$(DTYPE).orig.tar.xz" -T- --owner=root --group=root --mode=a+rX
......@@ -32,6 +32,8 @@ This is the daemon headers.
%prep
%setup -q
git fetch --all
git merge origin master --no-edit
# Apply all patches
for patch_file in $(cat debian/patches/series | grep -v "^#")
do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment