2021-10-25 05:07:51 +13:00
|
|
|
#!/bin/sh
|
2021-09-09 08:50:42 +12:00
|
|
|
|
2021-10-25 05:07:51 +13:00
|
|
|
cwd="$(pwd)"
|
|
|
|
cd "$(dirname "$0")"/.. || exit
|
2021-09-09 08:50:42 +12:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2021-10-25 05:07:51 +13:00
|
|
|
cd "$cwd" || exit
|