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

14 lines
242 B
Bash
Raw Normal View History

#!/bin/sh
cwd="$(pwd)"
cd "$(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
cd "$cwd" || exit