Fix some daylength issues, possible division by zero in main menu.
[openttd-joker.git] / src / script / api / doxygen_filter.sh
blob9e9c724dbec8fce5c9023d24a30fc331e91fb4ef
1 #!/bin/bash
3 # $Id: doxygen_filter.sh 23610 2011-12-19 20:56:42Z truebrain $
5 # This file is part of OpenTTD.
6 # 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.
7 # 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.
8 # 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/>.
10 # Set neutral locale so sort behaves the same everywhere
11 LC_ALL=C
12 export LC_ALL
14 # We really need gawk for this!
15 AWK=gawk
17 ${AWK} --version > /dev/null 2> /dev/null
18 if [ "$?" != "0" ]; then
19 echo "This script needs gawk to run properly"
20 exit 1
23 case $2 in
24 *ai_changelog.hpp) cat $2; exit 0;;
25 *game_changelog.hpp) cat $2; exit 0;;
26 esac
28 ${AWK} -v api=$1 -f doxygen_filter.awk $2