-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdiff_msgid.sh
More file actions
executable file
·34 lines (25 loc) · 872 Bytes
/
diff_msgid.sh
File metadata and controls
executable file
·34 lines (25 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
# Copyright (C) 2009 by Andrew Ziem. All rights reserved.
# License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
# This is free software: you are free to change and redistribute it.
# There is NO WARRANTY, to the extent permitted by law.
#
# Compare change .pot strings from trunk to release version given on command line
#
OLDPO=../releases/$1/po
[ -d $OLDPO ] || echo "$OLDPO does not exist"
[ -d $OLDPO ] || exit
cd ../trunk/po
make bleachbit.pot
cd -
cd ../releases/$1/po
make bleachbit.pot
cd -
msggrep -Kie . --no-wrap ../trunk/po/bleachbit.pot | grep ^msgid | cut -c 8- | sort > /tmp/msgid-trunk
msggrep -Kie . --no-wrap $OLDPO/bleachbit.pot | grep ^msgid | cut -c 8- | sort > /tmp/msgid-release-$1
diff /tmp/msgid-{release-$1,trunk}
rm -f /tmp/msgid-trunk
rm -f /tmp/msgid-release-$1
cd $OLDPO
make clean
cd -