From b6e9994c9871e6ce3272396b6a13c46291ecd71f Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Thu, 4 Apr 2019 14:45:04 +0200 Subject: Packaging: Fix no *dsc files found Depending on the OSC utility version the build doesn't occur the same way nor put the files in the same places. This solves that by not assuming that the *dsc file is in the parent directory but somewhere in the parent directory. Change-Id: Id72acd3842256f2b00966b34ab136df849bd9683 Signed-off-by: Romain Forlot --- conf.d/packaging/deb/debian.rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'conf.d/packaging/deb/debian.rules') diff --git a/conf.d/packaging/deb/debian.rules b/conf.d/packaging/deb/debian.rules index 4fe1d6f..0ba33a4 100644 --- a/conf.d/packaging/deb/debian.rules +++ b/conf.d/packaging/deb/debian.rules @@ -2,7 +2,7 @@ # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 -export VERSION=$(shell grep -E "^Version" ../*dsc | sed -r 's/^.*: (.*)-.*/\1/') +export VERSION=$(shell grep -E "^Version" $(shell find .. -name BUILD -prune -type d -o -name *dsc -print | head -n1) | sed -r 's/^.*: (.*)-.*/\1/') %: bash /etc/profile.d/agl-app-framework-binder.sh -- cgit 1.2.3-korg