Skip to content

Commit

Permalink
handle server sipify in prepare-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed May 1, 2017
1 parent dce5b59 commit 5112428
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/prepare-commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ SIPIFYDIFF=sipify.$REV.diff
>$SIPIFYDIFF
for f in $MODIFIED; do
# if cpp header
if [[ $f =~ ^src\/(core|gui|analysis)\/.*\.h$ ]]; then
if [[ $f =~ ^src\/(core|gui|analysis|server)\/.*\.h$ ]]; then
# look if corresponding SIP file
#echo $f
sip_include=$(${GP}sed -r 's/^src\/(\w+)\/.*$/python\/\1\/\1.sip/' <<< $f )
sip_file=$(${GP}sed -r 's/^src\/(core|gui|analysis)\///; s/\.h$/.sip/' <<<$f )
sip_file=$(${GP}sed -r 's/^src\/(core|gui|analysis|server)\///; s/\.h$/.sip/' <<<$f )
if grep -Exq "^\s*%Include $sip_file" ${TOPLEVEL}/$sip_include ; then
#echo "in SIP"
sip_file=$(${GP}sed -r 's/^src\///; s/\.h$/.sip/' <<<$f )
Expand Down

0 comments on commit 5112428

Please sign in to comment.