/usr/share/gtksourceview-3.0/language-specs/check-language.sh is in libgtksourceview-3.0-common 3.4.2-1.
This file is owned by root:root, with mode 0o644.
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 | #!/bin/sh
# "./check-language.sh files..." will validate files given on command line.
# "./check-language.sh" without arguments will validate all language files
# in the source directory
files=""
if [ $1 ]; then
files=$@
else
if [ "$srcdir" ]; then
cd $srcdir
fi
for lang in *.lang; do
case $lang in
msil.lang) ;;
*)
files="$files $lang"
;;
esac
done
fi
for file in $files; do
case $file in
testv1.lang) ;; # skip test file for old format
*)
xmllint --relaxng language2.rng --noout $file || exit 1
;;
esac
done
|