Update: Translations from eints
[openttd-github.git] / src / script / api / doxygen_filter.sh
blob451e7d20d6a2e5d09d220d8bed0f605527f69513
1 #!/bin/bash
3 # This file is part of OpenTTD.
4 # OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
5 # OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
6 # See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
8 # Set neutral locale so sort behaves the same everywhere
9 LC_ALL=C
10 export LC_ALL
12 # We really need gawk for this!
13 AWK=gawk
15 ${AWK} --version > /dev/null 2> /dev/null
16 if [ "$?" != "0" ]; then
17 echo "This script needs gawk to run properly"
18 exit 1
21 case $2 in
22 *ai_changelog.hpp) cat $2; exit 0;;
23 *game_changelog.hpp) cat $2; exit 0;;
24 *script_types.hpp) cat $2; exit 0;;
25 esac
27 ${AWK} -v api=$1 -f doxygen_filter.awk $2