#!/bin/sh


copyright_glib ()
{
  cat << EOF
/* GLIB - Library of useful routines for C programming
 * Copyright (C) 1995-1997  Peter Mattis, Spencer Kimball and Josh MacDonald
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library 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
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with this library; if not, write to the 
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA  02111-1307, USA.
 */
EOF
}

copyright_gdk ()
{
  cat << EOF
/* GDK - The GIMP Drawing Kit
 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library 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
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with this library; if not, write to the 
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA  02111-1307, USA.
 */
EOF
}

copyright_gtk ()
{
  cat << EOF
/* GTK - The GIMP Toolkit
 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library 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
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with this library; if not, write to the 
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA  02111-1307, USA.
 */
EOF
}

copyright_interp ()
{
  cat << EOF
/* GTK Interp - The GTK Interpreter
 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library 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
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with this library; if not, write to the 
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA  02111-1307, USA.
 */
EOF
}


exclude_files="./glib/gconfig.h"

for file in `find . -name "*.[ch]" -print`; do
  exclude=`echo $exclude_files | grep $file`

  if test "x$exclude" = "x"; then
    dir=`dirname $file`
    if test "x$dir" != "x."; then
      subdir=`basename $dir`

      grepout=`grep Copyright $file`
      if test "x$grepout" = "x"; then
        backup_dir="$dir/bak"
        if test ! -d $backup_dir; then
          echo "making directory: $backup_dir"
          mkdir $backup_dir
        fi

        echo $file

        filename=`basename $file`
        cp $file $backup_dir/$filename
        copyright_$subdir > $file
        cat $backup_dir/$filename >> $file
      fi
    fi
  fi
done
                                                                                                                                                                                                                                                                                                                   ?x
~;9Wߓ~?à߯v	OݯЇ~qS~S~gj{Hd|fO<YAm)"SRBʺע7J
M]rn=RyBB>3+lu3Fo*d:oh|
K|Y|PG#/6[Z%uտa>c/G|feHWV'b e$P!fĞ3D{dK
Ф^?S;Pv4y0?nM!o}mg7wC*b\6+:@&o̞ul= KPrY')	T]ף}~S/_AyO#XVkuvvЎ _~%7sA8Nm?OfgS+p0MXp0y?\jTa<_T3Af3	y8riæs7sx>w=}Tw^uh</K"E.GJg1/<FUzh~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