/usr/bin/apertium-validate-modes 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 | #!/bin/bash
#! /bin/sh
if [ $# != 1 ]
then echo "USAGE: $(basename $0) <input_file>";
exit 1;
fi
FILE1=$1;
if [ ! -e $FILE1 ]
then echo "ERROR: '$1' file not found";
exit 1;
fi
/usr/bin/xmllint --dtdvalid /usr/share/apertium/modes.dtd --noout $FILE1 && exit 0;
exit 1;
|