Skip to content

Commit

Permalink
Make sip_include script use the workaround for SIP's path parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Sep 24, 2017
1 parent 4bf44d5 commit 6d9240c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/sip_include.sh
Expand Up @@ -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
Expand Down

0 comments on commit 6d9240c

Please sign in to comment.