1
0
Fork 0
mirror of synced 2024-06-28 19:21:05 +12:00
Rare/scripts/ui2py.sh
2021-10-24 19:07:51 +03:00

14 lines
242 B
Bash
Executable file

#!/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