This commit is contained in:
Nyall Dawson 2024-08-12 20:11:19 +10:00
parent 182e30ab61
commit a2048773e7
2 changed files with 5 additions and 5 deletions

View File

@ -2174,9 +2174,9 @@ if args.sip_output:
f.write(''.join(output))
f.write(''.join(sip_header_footer()))
else:
print(''.join(sip_header_footer()))
print(''.join(output))
print(''.join(sip_header_footer()))
print(''.join(sip_header_footer()) +
''.join(output) +
''.join(sip_header_footer()).rstrip())
if args.python_output and output_python:
with open(args.python_output, 'w') as f:

View File

@ -20,7 +20,7 @@ code=0
for root_dir in python python/PyQt6; do
if [[ $root_dir == "python/PyQt6" ]]; then
IS_QT6="--qt6"
IS_QT6="-qt6"
fi
for module in "${modules[@]}"; do
@ -30,7 +30,7 @@ for root_dir in python python/PyQt6; do
if [ ! -f $header ]; then
echo "*** Missing header: $header for sipfile $sipfile"
else
outdiff=$(./scripts/sipify.pl $IS_QT6 -p $root_dir/${module}/auto_additions/${pyfile}.temp $header | diff $root_dir/$sipfile.in -)
outdiff=$(./scripts/sipify.py $IS_QT6 -python_output $root_dir/${module}/auto_additions/${pyfile}.temp $header | diff $root_dir/$sipfile.in -)
if [[ -n "$outdiff" ]]; then
echo " *** SIP file not up to date: $root_dir/$sipfile"
echo " $outdiff "