blob: 6eaa5de7742bc0afb8744b6ad1e38c0779a65b41 (
plain) (
blame)
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
|
--- tools/pocompendium.orig 2020-04-25 10:43:45 UTC
+++ tools/pocompendium
@@ -94,7 +94,7 @@ fi
output=$1
shift
-tmp_dir=`mktemp -d tmp.XXXXXXXXXX`
+tmp_dir=`mktemp -d -t /tmp tmp.XXXXXXXXXX`
if [ $1 == "-d" ]; then
shift
@@ -159,14 +159,14 @@ msgcat -o $output `find $tmp_dir -name "*.po"` 2> >(eg
# Extract only errors if requested
if [ $option_errors -eq 1 ] ; then
- tmp=`mktemp tmp.XXXXXXXXXX`
+ tmp=`mktemp -t /tmp tmp.XXXXXXXXXX`
msgattrib --only-fuzzy $output > $tmp
mv $tmp $output
fi
# Extract only correct translations if requested
if [ $option_correct -eq 1 ] ; then
- tmp=`mktemp tmp.XXXXXXXXXX`
+ tmp=`mktemp -t /tmp tmp.XXXXXXXXXX`
msgattrib --translated --no-fuzzy -o $tmp $output 2> >(egrep -v "warning: internationali.ed messages should not contain the .* escape sequence" >&2) && mv $tmp $output
fi
|