Fixed warning re defining GNU_SOURCE. Can probably just remove it since it's defined...
[debian/gnuradio] / gnuradio-core / src / lib / filter / generate_gr_fir_sysconfig_generic.py
index 5eb48641a8bfd48fde84c989c148848de4b636fc..03caadaf91b33609645a79dd00b741a1e0b2654b 100755 (executable)
@@ -1,13 +1,13 @@
 #!/bin/env python
 # -*- python -*-
 #
-# Copyright 2003 Free Software Foundation, Inc.
+# Copyright 2003,2009 Free Software Foundation, Inc.
 # 
 # This file is part of GNU Radio
 # 
 # GNU Radio is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
+# the Free Software Foundation; either version 3, or (at your option)
 # any later version.
 # 
 # GNU Radio is distributed in the hope that it will be useful,
@@ -28,6 +28,8 @@ from generate_utils import *
 
 def make_gr_fir_sysconfig_generic_h ():
     out = open_and_log_name ('gr_fir_sysconfig_generic.h', 'w')
+    if not out:
+        return
     out.write (copyright)
 
     out.write (
@@ -110,6 +112,8 @@ gr_fir_sysconfig_generic::get_gr_fir_%s_info (std::vector<gr_fir_%s_info> *info)
 
 def make_gr_fir_sysconfig_generic_cc ():
     out = open_and_log_name ('gr_fir_sysconfig_generic.cc', 'w')
+    if not out:
+        return
     out.write (copyright)
 
     out.write (