mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
handle server sipify in prepare-commit
This commit is contained in:
parent
dce5b59fcb
commit
5112428a29
@ -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 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user