X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=tests%2Fc-plus-plus-test-gen.py;h=a2836f06cd9ebba916944c78eb6e9f3f550ceb40;hb=2aa610ca9e872c18937c298d1d52dea20702176d;hp=62498f5b9566e31cde09a1da9653cc2efb57b7e3;hpb=7934ca5e102693ba02d9ca6dcdee4960f2ba1a64;p=catta diff --git a/tests/c-plus-plus-test-gen.py b/tests/c-plus-plus-test-gen.py index 62498f5..a2836f0 100755 --- a/tests/c-plus-plus-test-gen.py +++ b/tests/c-plus-plus-test-gen.py @@ -1,9 +1,7 @@ #!/usr/bin/python -# $Id$ -# # This file is part of avahi. -# +# # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the @@ -19,41 +17,45 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. -import os +import os, sys def print_includes(dir): files = os.listdir("../%s" % dir) files = filter(lambda fn: fn.endswith(".h") and not fn.startswith("."), files) + files.sort() for f in files: print "#include <%s/%s>" % (dir, f) -print """/* $Id$ */ - -/*** +print """/*** This file is part of avahi. - + avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. - + avahi 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. See the GNU Lesser General Public License for more details. - + You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ + +#ifdef HAVE_CONFIG_H +#include +#endif + """ -print_includes("avahi-common") -print_includes("avahi-core") +for f in sys.argv[1:]: + print_includes(f) print """ int main(int argc, char*argv[]) {