From 6d9240cfd8a5cdea66dc296d3f4a9493fedca1d2 Mon Sep 17 00:00:00 2001 From: Martin Dobias Date: Mon, 25 Sep 2017 00:39:26 +0200 Subject: [PATCH] Make sip_include script use the workaround for SIP's path parsing --- scripts/sip_include.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/sip_include.sh b/scripts/sip_include.sh index c947eb9b298..30024df177f 100755 --- a/scripts/sip_include.sh +++ b/scripts/sip_include.sh @@ -65,6 +65,11 @@ for module in "${modules[@]}"; do if [[ ! -z $if_cond ]]; then echo "$if_cond" >> $file fi + if [[ "$sip" == [0-9]* ]]; then + # unfortunately SIP parser does not accept relative paths starting with a number + # so "%Include 3d/xxxx.sip" is a syntax error but everything works with "%Include ./3d/xxxx.sip" + sip="./$sip" + fi echo "%Include $sip" >> $file if [[ ! -z $if_cond ]]; then echo "%End" >> $file