Add powerbox hook
[gtk-with-powerbox.git] / makecopyright
blob089e79c87d57c4d9dc8c4c77a9bb1b424a8252fc
1 #!/bin/sh
4 copyright_glib ()
6 cat << EOF
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, write to the
22 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23 * Boston, MA 02111-1307, USA.
25 EOF
28 copyright_gdk ()
30 cat << EOF
31 /* GDK - The GIMP Drawing Kit
32 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
34 * This library is free software; you can redistribute it and/or
35 * modify it under the terms of the GNU Library General Public
36 * License as published by the Free Software Foundation; either
37 * version 2 of the License, or (at your option) any later version.
39 * This library is distributed in the hope that it will be useful,
40 * but WITHOUT ANY WARRANTY; without even the implied warranty of
41 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
42 * Library General Public License for more details.
44 * You should have received a copy of the GNU Library General Public
45 * License along with this library; if not, write to the
46 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
47 * Boston, MA 02111-1307, USA.
49 EOF
52 copyright_gtk ()
54 cat << EOF
55 /* GTK - The GIMP Toolkit
56 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
58 * This library is free software; you can redistribute it and/or
59 * modify it under the terms of the GNU Library General Public
60 * License as published by the Free Software Foundation; either
61 * version 2 of the License, or (at your option) any later version.
63 * This library is distributed in the hope that it will be useful,
64 * but WITHOUT ANY WARRANTY; without even the implied warranty of
65 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
66 * Library General Public License for more details.
68 * You should have received a copy of the GNU Library General Public
69 * License along with this library; if not, write to the
70 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
71 * Boston, MA 02111-1307, USA.
73 EOF
76 copyright_interp ()
78 cat << EOF
79 /* GTK Interp - The GTK Interpreter
80 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
82 * This library is free software; you can redistribute it and/or
83 * modify it under the terms of the GNU Library General Public
84 * License as published by the Free Software Foundation; either
85 * version 2 of the License, or (at your option) any later version.
87 * This library is distributed in the hope that it will be useful,
88 * but WITHOUT ANY WARRANTY; without even the implied warranty of
89 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
90 * Library General Public License for more details.
92 * You should have received a copy of the GNU Library General Public
93 * License along with this library; if not, write to the
94 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
95 * Boston, MA 02111-1307, USA.
97 EOF
101 exclude_files="./glib/gconfig.h"
103 for file in `find . -name "*.[ch]" -print`; do
104 exclude=`echo $exclude_files | grep $file`
106 if test "x$exclude" = "x"; then
107 dir=`dirname $file`
108 if test "x$dir" != "x."; then
109 subdir=`basename $dir`
111 grepout=`grep Copyright $file`
112 if test "x$grepout" = "x"; then
113 backup_dir="$dir/bak"
114 if test ! -d $backup_dir; then
115 echo "making directory: $backup_dir"
116 mkdir $backup_dir
119 echo $file
121 filename=`basename $file`
122 cp $file $backup_dir/$filename
123 copyright_$subdir > $file
124 cat $backup_dir/$filename >> $file
128 done