summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGwenolé Beauchesne <gbeauchesne@mandriva.org>2005-01-31 15:19:24 +0000
committerGwenolé Beauchesne <gbeauchesne@mandriva.org>2005-01-31 15:19:24 +0000
commit2b813466307b5c3ede74bb37398c7a7cbfbce220 (patch)
tree583b9369063877791867567c7ff8eb2a0d844bcb
parentc324afc0f476621290f5cf514e35cdf120f86c59 (diff)
downloadmultiarch-utils-2b813466307b5c3ede74bb37398c7a7cbfbce220.tar
multiarch-utils-2b813466307b5c3ede74bb37398c7a7cbfbce220.tar.gz
multiarch-utils-2b813466307b5c3ede74bb37398c7a7cbfbce220.tar.bz2
multiarch-utils-2b813466307b5c3ede74bb37398c7a7cbfbce220.tar.xz
multiarch-utils-2b813466307b5c3ede74bb37398c7a7cbfbce220.zip
handle /usr/include/header.h cases
-rwxr-xr-xmkmultiarch3
1 files changed, 2 insertions, 1 deletions
diff --git a/mkmultiarch b/mkmultiarch
index 00671fe..6029f6e 100755
--- a/mkmultiarch
+++ b/mkmultiarch
@@ -33,8 +33,9 @@ function dispatch_binaries() {
function dispatch_includes() {
local file=$1
local incdir=`dirname $file`
+ echo $file | grep -q '/include/' || error "Unsupported includedir $incdir"
local prefix=`echo $incdir | sed -n '/\(.*\/include\)\/.*/s//\1/p'`
- [[ -z "$prefix" ]] && error "Unsupported includedir $incdir"
+ [[ -z "$prefix" ]] && prefix="$incdir"
local suffix=`echo $incdir | sed -n '/.*\/include\/\(.*\)/s//\1/p'`
[[ -n "$suffix" ]] && suffix="$suffix/"
# dispatch nested includes expected in local directory