Files
package_application_recovery/pre-commit-translation-update-hook.sh
2021-07-13 20:09:40 +01:00

13 lines
389 B
Bash
Executable File

#!/bin/sh
# Automatically update the translation files on every commit
#
# To enable this commit hook, run the following commands in the project root:
# chmod +x pre-commit-translation-update-hook.sh
# cp pre-commit-translation-update-hook.sh .git/hooks/pre-commit
export QT_SELECT=5
cd "$(git rev-parse --show-toplevel)"
lupdate -no-obsolete recovery/recovery.pro
git add recovery/*.ts