michael@0: #!/user/local/bin/perl michael@0: # -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- michael@0: # michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: $name = "ucvlatin"; michael@0: $dir = "./"; michael@0: michael@0: sub printnpl() michael@0: { michael@0: $npl = < /dev/null'; michael@0: if( system($cmd)) { michael@0: print "\/\/ "; michael@0: } michael@0: print "#define " . $definename . "\n"; michael@0: } michael@0: michael@0: michael@0: michael@0: &printnpl(); michael@0: print "\n"; michael@0: print "#ifndef " . $name . "config_h__\n"; michael@0: print "#define " . $name . "config_h__\n"; michael@0: print "\n"; michael@0: print "\/* This file is generated by running mozilla/intl/uconv/tools/genimpldefine.pl on unix */\n"; michael@0: michael@0: &finddefine( "nsBasicDecoderSupport", "IMPL_NSBASICDECODER"); michael@0: &finddefine( "nsBufferDecoderSupport", "IMPL_NSBUFFERDECODER"); michael@0: &finddefine( "nsTableDecoderSupport", "IMPL_NSTABLEDECODER"); michael@0: &finddefine( "nsMultiTableDecoderSupport", "IMPL_NSMULTITABLEDECODER"); michael@0: &finddefine( "nsOneByteDecoderSupport", "IMPL_NSONEBYTEDECODER"); michael@0: &finddefine( "nsBasicEncoder", "IMPL_NSBASICENCODER"); michael@0: &finddefine( "nsEncoderSupport", "IMPL_NSENCODER"); michael@0: &finddefine( "nsTableEncoderSupport", "IMPL_NSTABLEENCODER"); michael@0: &finddefine( "nsMultiTableEncoderSupport", "IMPL_NSMULTITABLEENCODER"); michael@0: print "\n"; michael@0: print "#include \"" . $name . "rules.h\"\n"; michael@0: print "\n"; michael@0: print "#endif \/*" . $name . "config_h__ *\/\n";