diff options
-rwxr-xr-x | mkmultiarch | 3 |
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 |