Skip to content

Commit 8493194

Browse files
committed
Autoapply sipify in prepare-commit.sh
1 parent f0fb1f1 commit 8493194

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

scripts/prepare-commit.sh

+3-5
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,11 @@ for f in $MODIFIED; do
125125
m=python/$sip_file.$REV.prepare
126126
touch python/$sip_file
127127
cp python/$sip_file $m
128-
${TOPLEVEL}/scripts/sipify.pl $f > $m
129-
if diff -u $m python/$sip_file >>$SIPIFYDIFF; then
130-
# no difference found
131-
rm $m
132-
else
128+
${TOPLEVEL}/scripts/sipify.pl $f > python/$sip_file
129+
if ! diff -u $m python/$sip_file >>$SIPIFYDIFF; then
133130
echo "python/$sip_file is not up to date"
134131
fi
132+
rm $m
135133
fi
136134
fi
137135
fi

0 commit comments

Comments
 (0)