Home | History | Annotate | Download | only in tests
      1 #!/usr/bin/python
      2 
      3 # This file is part of avahi.
      4 #
      5 # avahi is free software; you can redistribute it and/or modify it
      6 # under the terms of the GNU Lesser General Public License as
      7 # published by the Free Software Foundation; either version 2 of the
      8 # License, or (at your option) any later version.
      9 #
     10 # avahi is distributed in the hope that it will be useful, but WITHOUT
     11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
     12 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
     13 # License for more details.
     14 #
     15 # You should have received a copy of the GNU Lesser General Public
     16 # License along with avahi; if not, write to the Free Software
     17 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
     18 # USA.
     19 
     20 import os, sys
     21 
     22 def print_includes(dir):
     23 
     24     files = os.listdir("../%s" % dir)
     25     files = filter(lambda fn: fn.endswith(".h") and not fn.startswith("."), files)
     26     files.sort()
     27 
     28     for f in files:
     29         print "#include <%s/%s>" % (dir, f)
     30 
     31 
     32 print """/***
     33   This file is part of avahi.
     34 
     35   avahi is free software; you can redistribute it and/or modify it
     36   under the terms of the GNU Lesser General Public License as
     37   published by the Free Software Foundation; either version 2.1 of the
     38   License, or (at your option) any later version.
     39 
     40   avahi is distributed in the hope that it will be useful, but WITHOUT
     41   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
     42   or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
     43   Public License for more details.
     44 
     45   You should have received a copy of the GNU Lesser General Public
     46   License along with avahi; if not, write to the Free Software
     47   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
     48   USA.
     49 ***/
     50 
     51 #ifdef HAVE_CONFIG_H
     52 #include <config.h>
     53 #endif
     54 
     55 """
     56 
     57 for f in sys.argv[1:]:
     58     print_includes(f)
     59 
     60 print """
     61 int main(int argc, char*argv[]) {
     62     return 0;
     63 }
     64 """
     65