19 lines
351 B
Bash
Executable File
19 lines
351 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
file="$1"
|
|
|
|
if [[ $file == *.pl ]]; then
|
|
# the default is that .pl corresponds to perl, but not here!
|
|
echo -n "prolog"
|
|
fi
|
|
|
|
if [[ $file == *.ts ]]; then
|
|
# qt translations, who knew
|
|
echo -n "qt-translation"
|
|
fi
|
|
|
|
# We're fine with the defaults for other types of files so we don't
|
|
# print anything else.
|
|
echo ""
|
|
exit 0
|