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

Fix get orig sources

Change-Id: I7c7110ec04a77237369cc4aba249f441b4ba7539
parent 6f2eabbf
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,8 @@ PKG = $(shell dpkg-parsechangelog -l$(PKD)/changelog --show-field=Source) ...@@ -7,7 +7,8 @@ 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+.*)};') VER ?= $(shell dpkg-parsechangelog -l$(PKD)/changelog | perl -ne 'print $$1 if m{^Version:\s+(?:\d+:)?(\d.*)(?:\-\d+.*)};')
DISTRIB_ID = $(shell grep -hPo "^ID=\K.*" /etc/*ease) DISTRIB_ID = $(shell grep -hPo "^ID=\K.*" /etc/*ease)
DISTRIB_VERSION_ID = $(shell grep -hPo "^VERSION_ID=\K.*" /etc/*ease) DISTRIB_VERSION_ID = $(shell grep -hPo "^VERSION_ID=\K.*" /etc/*ease)
DAEMON_TAG = 2.1.0
DAEMON_TAG = $(VER)
# Uncomment this to turn on verbose mode. # Uncomment this to turn on verbose mode.
export DH_VERBOSE=1 export DH_VERBOSE=1
...@@ -49,8 +50,13 @@ override_dh_auto_install: ...@@ -49,8 +50,13 @@ override_dh_auto_install:
get-orig-source: get-orig-source:
# Daemon # Daemon
git init
git remote add origin https://gerrit-ring.savoirfairelinux.com/ring-daemon
git fetch --all git fetch --all
git merge origin $(DAEMON_TAG) --no-edit git checkout packaging-releases -f
git config user.name "joulupukki"
git config user.email "joulupukki@localhost"
git merge $(DAEMON_TAG) --no-edit
# Packing # Packing
@echo "# Packing ... " @echo "# Packing ... "
find . | sort \ find . | sort \
......
...@@ -46,7 +46,7 @@ git fetch --all ...@@ -46,7 +46,7 @@ git fetch --all
git checkout packaging-releases -f git checkout packaging-releases -f
git config user.name "joulupukki" git config user.name "joulupukki"
git config user.email "joulupukki@localhost" git config user.email "joulupukki@localhost"
git merge origin/%{daemon_tag} --no-edit git merge %{daemon_tag} --no-edit
# Apply all patches # Apply all patches
for patch_file in $(cat debian/patches/series | grep -v "^#") for patch_file in $(cat debian/patches/series | grep -v "^#")
do do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment