summaryrefslogtreecommitdiffstats
path: root/port23
blob: 8ede714169e05d16815598173b9107a23bb4868f (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/zsh

unsetopt dotglob

for f in **/*~build(.);do
    if file $f | grep -q python2;then
        echo "Python file $f"
        2to3 $f | patch -N $f  &&  sed -i -e 's|#!/usr/bin/env python2|#!/usr/bin/env python|' $f
    fi
done