diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2001-08-19 18:13:14 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2001-08-19 18:13:14 (GMT) |
commit | 2f7902073680b977b74f3faeada95119ec767eb3 (patch) | |
tree | 3ff0575884709cdc92f9e462441672f3549ab054 /configure | |
parent | eed6800521ab6f21c41f485820ec1ee2def42e94 (diff) | |
download | Doxygen-2f7902073680b977b74f3faeada95119ec767eb3.zip Doxygen-2f7902073680b977b74f3faeada95119ec767eb3.tar.gz Doxygen-2f7902073680b977b74f3faeada95119ec767eb3.tar.bz2 |
Release-1.2.9-20010819
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 26 |
1 files changed, 25 insertions, 1 deletions
@@ -27,6 +27,7 @@ f_prefix=/usr f_insttool=NO f_english=NO f_wizard=NO +f_langs=nl,se,cz,fr,it,de,jp,es,fi,ru,hr,pl,pt,hu,kr,ro,si,cn,no,br,dk,sk,ua while test -n "$1"; do case $1 in @@ -51,6 +52,9 @@ while test -n "$1"; do --english-only | -english-only) f_english=YES ;; + --enable-langs | -enable-langs) + shift; f_langs=$1 + ;; --platform | -platform) shift; f_platform=$1 ;; @@ -86,7 +90,7 @@ if test "$f_help" = y; then Usage: $0 [--help] [--shared] [--static] [--release] [--debug] [--perl name] [--make name] [--dot name] [--platform target] [--prefix dir] [--docdir dir] [--install name] [--english-only] - [--with-doxywizard] + [----enable-langs list] [--with-doxywizard] Options: @@ -112,6 +116,8 @@ Options: --install name Use \`name' as the name of the GNU install tool [default: autodetect] --english-only Include support for English only. + --enable-langs list Include support for output languages listed in list. + [default: $f_langs] --with-doxywizard Build the GUI frontend for doxygen. This requires Qt 2.x.x @@ -344,6 +350,7 @@ if test "$f_perl" = NO; then fi echo "using $f_perl"; + # ----------------------------------------------------------------------------- test -f .makeconfig && rm .makeconfig @@ -450,3 +457,20 @@ EOF echo " Created $DST from $SRC..." done +# - generating src/lang_cfg.h + +echo -n " Generating src/lang_cfg.h..." +echo $f_langs | $f_perl -e '@l=split(/,/,<STDIN>); + chomp @l; + @allowed=(NL,SE,CZ,FR,IT,DE,JP,ES,FI,RU,HR,PL,PT,HU,KR,RO,SI,CN,NO,BR, + DK,SK,UA); + foreach my $elem (@l){ + $elem =~ tr/a-z/A-Z/; + $r=0; + foreach my $tst (@allowed){ + if ($tst eq $elem) { $r=1; last; } + } + if ($r!=1) { die "ERROR: Invalid language $elem was selected!\n"; } + print "#define LANG_$elem\n"; + };' > ./src/lang_cfg.h +echo |