Skip to content

Commit

Permalink
Autoapply sipify in prepare-commit.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Apr 28, 2017
1 parent f0fb1f1 commit 8493194
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions scripts/prepare-commit.sh
Expand Up @@ -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
Expand Down

0 comments on commit 8493194

Please sign in to comment.