X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=tests%2Fc-plus-plus-test-gen.py;h=a2836f06cd9ebba916944c78eb6e9f3f550ceb40;hb=7b124f6ae362a575460d2374dca39ebdce07c714;hp=b1d6aae6769fa73e0a7f70f6dbc2c6c74951c44f;hpb=a4acfaf4f942f702606e660990c873c9ff5b0395;p=catta diff --git a/tests/c-plus-plus-test-gen.py b/tests/c-plus-plus-test-gen.py index b1d6aae..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,42 +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") -print_includes("avahi-client") +for f in sys.argv[1:]: + print_includes(f) print """ int main(int argc, char*argv[]) {