7 /* GLIB - Library of useful routines for C programming
8 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Library General Public
12 * License as published by the Free Software Foundation; either
13 * version 2 of the License, or (at your option) any later version.
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Library General Public License for more details.
20 * You should have received a copy of the GNU Library General Public
21 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
29 /* GDK - The GIMP Drawing Kit
30 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
32 * This library is free software; you can redistribute it and/or
33 * modify it under the terms of the GNU Library General Public
34 * License as published by the Free Software Foundation; either
35 * version 2 of the License, or (at your option) any later version.
37 * This library is distributed in the hope that it will be useful,
38 * but WITHOUT ANY WARRANTY; without even the implied warranty of
39 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
40 * Library General Public License for more details.
42 * You should have received a copy of the GNU Library General Public
43 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
51 /* GTK - The GIMP Toolkit
52 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
54 * This library is free software; you can redistribute it and/or
55 * modify it under the terms of the GNU Library General Public
56 * License as published by the Free Software Foundation; either
57 * version 2 of the License, or (at your option) any later version.
59 * This library is distributed in the hope that it will be useful,
60 * but WITHOUT ANY WARRANTY; without even the implied warranty of
61 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
62 * Library General Public License for more details.
64 * You should have received a copy of the GNU Library General Public
65 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
73 /* GTK Interp - The GTK Interpreter
74 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
76 * This library is free software; you can redistribute it and/or
77 * modify it under the terms of the GNU Library General Public
78 * License as published by the Free Software Foundation; either
79 * version 2 of the License, or (at your option) any later version.
81 * This library is distributed in the hope that it will be useful,
82 * but WITHOUT ANY WARRANTY; without even the implied warranty of
83 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
84 * Library General Public License for more details.
86 * You should have received a copy of the GNU Library General Public
87 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
93 exclude_files="./glib/gconfig.h"
95 for file in `find . -name "*.[ch]" -print`; do
96 exclude=`echo $exclude_files | grep $file`
98 if test "x$exclude" = "x"; then
100 if test "x$dir" != "x."; then
101 subdir=`basename $dir`
103 grepout=`grep Copyright $file`
104 if test "x$grepout" = "x"; then
105 backup_dir="$dir/bak"
106 if test ! -d $backup_dir; then
107 echo "making directory: $backup_dir"
113 filename=`basename $file`
114 cp $file $backup_dir/$filename
115 copyright_$subdir > $file
116 cat $backup_dir/$filename >> $file