This file is indexed.

/usr/bin/popuretext is in translate-toolkit 1.10.0-2.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/bin/bash
#
# Copyright 2005 Zuza Software Foundation
#
# This file is part of The Translate Toolkit.
#
# The Translate Toolkit is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# translate is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with translate; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA


# popuretext - extracts all the source text from a directory of PO or POT files, removes
# po headers and optionally the accelerator keys.

if [ $# -lt 2 ]; then
	echo "Usage: popuretext ( -P pot-dir | po-dir ) file.txt [accelerator]"
	exit 1
fi

do_pot=0
if [ "$1" == "-P" ]; then
	do_pot=1
	shift
	potdir=$1
else
	podir=$1
fi
textfile=$2
accelerator=$3


if [ $do_pot -eq 1 ]; then
	tempdir=`mktemp -d tmp.XXXXXXXXXX`
	for pot in `cd $potdir; find . -name "*.pot"`
	do
		mkdir -p $tempdir/$(dirname $pot)
		msgen --no-wrap $potdir/$pot -o $tempdir/$(dirname $pot)/$(basename $pot .pot).po
	done
	podir=$tempdir
fi

cat /dev/null > $textfile

for po in `find $podir -name "*.po"`
do
	msgexec -i $po sed "s/$/\\n/g" |
	sed "/^_:/d" |
	sed "/^$/d"  |
	if [ "$accelerator" != "" ]; then
		sed "s/$accelerator//g"
	else
		cat
	fi |
	sed "/^\(Project-Id-Version:\|Report-Msgid-Bugs-To:\|POT-Creation-Date:\|PO-Revision-Date:\|Last-Translator:\|Language-Team:\|MIME-Version:\|Content-Type:\|Content-Transfer-Encoding:\|Plural-Forms:\|X-Generator:\|X-Accelerator-Marker:\)/d" >> $textfile
done

rm -rf $tempdir