This file is indexed.

/usr/bin/apertium-gen-reformat is in apertium 3.1.0-1.3.

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
#!/bin/bash
#! /bin/sh
if [ $# != 2 ]
then if [ $# != 3 ]
     then echo "USAGE: $(basename $0) [-O] <input_file> <output_file>";
          exit 1;
     elif [ $1 != "-O" ]
     then echo "USAGE: $(basename $0) [-O] <input file> <output_file>";
          exit 1;
     fi
fi

FLEXOPTS=""
FILE1=$1;
FILE2=$2;

if [ $# = 2 ]
then if [ ! -e $1 ] 
     then echo "ERROR: '$1' file not found";
          exit 1;
     fi 
fi

if [ $# = 3 ]
then if [ ! -e $2 ]
     then echo "ERROR: '$2' file not found";
          exit 1;
     fi
     FLEXOPTS="-Cfer";
     FILE1=$2;
     FILE2=$3;
fi
/usr/bin/xmllint --dtdvalid /usr/share/apertium/format.dtd --noout $FILE1 && \
/usr/bin/xsltproc /usr/share/apertium/reformat.xsl $FILE1 >/tmp/$$.reformat.l && \
/usr/bin/flex $FLEXOPTS -o/tmp/$$.lex.cc /tmp/$$.reformat.l && \
x86_64-linux-gnu-g++ -Wall -ansi -O3 -mtune=nocona               -fomit-frame-pointer -funroll-loops -Wall -g -O0 -w -I/usr/include/lttoolbox-3.1 -I/usr/lib/lttoolbox-3.1/include -I/usr/include/libxml2   -I /usr/include/apertium-3.1 -o $FILE2 /tmp/$$.lex.cc &&\
rm /tmp/$$.reformat.l /tmp/$$.lex.cc