Skip to content

Commit 5112428

Browse files
committed
handle server sipify in prepare-commit
1 parent dce5b59 commit 5112428

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/prepare-commit.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,11 @@ SIPIFYDIFF=sipify.$REV.diff
109109
>$SIPIFYDIFF
110110
for f in $MODIFIED; do
111111
# if cpp header
112-
if [[ $f =~ ^src\/(core|gui|analysis)\/.*\.h$ ]]; then
112+
if [[ $f =~ ^src\/(core|gui|analysis|server)\/.*\.h$ ]]; then
113113
# look if corresponding SIP file
114114
#echo $f
115115
sip_include=$(${GP}sed -r 's/^src\/(\w+)\/.*$/python\/\1\/\1.sip/' <<< $f )
116-
sip_file=$(${GP}sed -r 's/^src\/(core|gui|analysis)\///; s/\.h$/.sip/' <<<$f )
116+
sip_file=$(${GP}sed -r 's/^src\/(core|gui|analysis|server)\///; s/\.h$/.sip/' <<<$f )
117117
if grep -Exq "^\s*%Include $sip_file" ${TOPLEVEL}/$sip_include ; then
118118
#echo "in SIP"
119119
sip_file=$(${GP}sed -r 's/^src\///; s/\.h$/.sip/' <<<$f )

0 commit comments

Comments
 (0)