Skip to content
Permalink
Browse files
Autoapply sipify in prepare-commit.sh
  • Loading branch information
m-kuhn committed Apr 28, 2017
1 parent f0fb1f1 commit 8493194336e9d19bf6483402f01443fa8c239f0c
Showing with 3 additions and 5 deletions.
  1. +3 −5 scripts/prepare-commit.sh
@@ -125,13 +125,11 @@ for f in $MODIFIED; do
m=python/$sip_file.$REV.prepare
touch python/$sip_file
cp python/$sip_file $m
${TOPLEVEL}/scripts/sipify.pl $f > $m
if diff -u $m python/$sip_file >>$SIPIFYDIFF; then
# no difference found
rm $m
else
${TOPLEVEL}/scripts/sipify.pl $f > python/$sip_file
if ! diff -u $m python/$sip_file >>$SIPIFYDIFF; then
echo "python/$sip_file is not up to date"
fi
rm $m
fi
fi
fi

0 comments on commit 8493194

Please sign in to comment.