[build] Fix up POTFILES.in and add sort-potfiles script

This commit is contained in:
Bertrand Lorentz 2010-06-18 23:26:03 +02:00
parent 516f2eba85
commit 047f3799cd
2 changed files with 10 additions and 2 deletions

View file

@ -1,5 +1,8 @@
# List of source files containing translatable strings.
# Please keep this file in alphabetical order; run ./sort-potfiles
# after adding files here.
[encoding: UTF-8]
SparkleShare/SparkleBubble.cs
SparkleShare/SparkleBubble.osx.cs
SparkleShare/SparkleDialog.cs
SparkleShare/SparkleHelpers.cs
SparkleShare/SparklePaths.cs
@ -10,4 +13,3 @@ SparkleShare/SparkleSpinner.cs
SparkleShare/SparkleStatusIcon.cs
SparkleShare/SparkleUI.cs
SparkleShare/SparkleWindow.cs

6
po/sort-potfiles Executable file
View file

@ -0,0 +1,6 @@
#!/bin/bash
head -n 4 < POTFILES.in > POTFILES.in.tmp
grep -v "^[\\[#]" < POTFILES.in | sort >> POTFILES.in.tmp
mv POTFILES.in.tmp POTFILES.in