#!/bin/sh

# inscopyright - insert copyright notice
# usage: inscopyright FILES
#
# created: mpichler, 19970521
# changed: mpichler, 19970521

newcopyright='/*
 * <copyright>
 *
 * Copyright (c) 1996,97
 * Institute for Information Processing and Computer Supported New Media (IICM),
 * Graz University of Technology, Austria.
 *
 * This file is part of the `pw'\'' VRML 2.0 parser.
 *
 * </copyright>
 */'

for f
do
  if [ -w $f ]
  then
    echo $f
    # for the first time, just prepend it to the files
    # later on, search for <copyright>,</copyright> markers
    mv $f temp.$$
    echo "$newcopyright" > $f
    cat temp.$$ >> $f
  else
    echo $f ... not writeable
  fi
done
rm temp.$$
