1
0
Fork 0
mirror of synced 2024-06-24 17:20:23 +12:00
Rare/ui2py.sh

13 lines
230 B
Bash
Raw Normal View History

#!/usr/bin/bash
pushd "$(dirname "$0")" || exit
changed="$(git diff --name-only HEAD | grep '\.ui')"
for ui in $changed; do
echo "Generating python file for ${ui}"
pyuic5 "${ui}" -x -o "${ui%.ui}.py"
done
popd || exit