This file is indexed.

/usr/bin/apertium-gen-modes is in apertium 3.1.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
#!/bin/bash
APERTIUMDIR=/usr/share/apertium
#! /bin/sh
if [ $# -lt 1 ]
then echo "USAGE: $(basename $0) <modes file> ";
     exit 1;
fi

FLEXOPTS=""
FILE1=$1;

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

DIRNAME=$(dirname $1);
FULLDIRNAME=$(cd $DIRNAME; pwd);

rm -Rf *.mode

if [ ! -d $FULLDIRNAME/modes ]
then mkdir $FULLDIRNAME/modes
else rm -Rf $FULLDIRNAME/modes && mkdir $FULLDIRNAME/modes
fi

FILE1=$FULLDIRNAME/$(basename $1)
cd $FULLDIRNAME/modes

if [ $# -eq 2 ]; then
	PREFIX=$2;
	FULLDIRNAME=$APERTIUMDIR"/"$PREFIX;
fi

/usr/bin/xmllint --dtdvalid /usr/share/apertium/modes.dtd --noout $FILE1 && \
/usr/bin/xsltproc --stringparam prefix /usr/bin --stringparam dataprefix $FULLDIRNAME  /usr/share/apertium/modes2bash.xsl $FILE1 | awk -f /usr/share/apertium/apertium-createmodes.awk PARAM=$FULLDIRNAME