aboutsummaryrefslogtreecommitdiffstats
path: root/conf.d/packaging/deb
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2019-04-04 14:45:04 +0200
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2019-04-11 15:42:42 +0000
commitb6e9994c9871e6ce3272396b6a13c46291ecd71f (patch)
treeb974f291b94894dd452a0c3202da2a931a9bd296 /conf.d/packaging/deb
parenta2ce1e9475352d9628e63869153289517ee7dd0d (diff)
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 <romain.forlot@iot.bzh>
Diffstat (limited to 'conf.d/packaging/deb')
-rw-r--r--conf.d/packaging/deb/debian.rules2
1 files changed, 1 insertions, 1 deletions
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