[pve-devel] [PATCH manager] add sort to jsgettext.pl

Dominik Csapak d.csapak at proxmox.com
Wed Jan 11 11:38:19 CET 2017


the output from find may not be stable (depending on the filesystem),
and is surely not the same on two different systems,
so for consistency in the po files, we sort the output from find with
sort

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 po/jsgettext.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/po/jsgettext.pl b/po/jsgettext.pl
index 16734c3..f3d32bd 100755
--- a/po/jsgettext.pl
+++ b/po/jsgettext.pl
@@ -12,7 +12,7 @@ die "no such directory\n" if ! -d $dir;
 
 my $sources = [];
 
-my $findcmd = ['find', $dir, '-name', '*.js'];
+my $findcmd = [['find', $dir, '-name', '*.js'],['sort']];
 PVE::Tools::run_command($findcmd, outfunc => sub {
     my $line = shift;
     next if $line =~ m|/pvemanagerlib.js$|;
-- 
2.1.4





More information about the pve-devel mailing list