Merge desktop file at build time

Previously, both the .desktop.in template and the final .desktop file
were checked into source control.

While in some ways convenient, the manual step of updating it may be
forgotten after updating a translation or adjusting the template. It
also potentially introduces confusion as to which file to modify.

Instead, generate the .desktop file at build time. Since this is now
done using msgfmt rather than intltool, there is no additional
dependency beyond gettext, which is already used at build time to
compile .po files to .mo files.
This commit is contained in:
Will Thompson 2022-06-10 10:36:48 +01:00
parent 3141249969
commit b4aa697474
4 changed files with 6 additions and 381 deletions

1
.gitignore vendored
View file

@ -14,4 +14,5 @@ TuxPaint.dmg
.DS_Store
*.thumbs
src/po/POTFILES.in
src/tuxpaint.desktop