# This needs to be run from the top-level directory

# Get files without headers
all_files=`maintainer/files_with_header.sh`
files_to_check=`grep -iL copyright $all_files`
py_files=`echo $files_to_check|tr " " "\n" |grep \.py$`
cpp_files=`echo $files_to_check|tr " " "\n" |grep '\.[c|h]pp$'`

tmp=`mktemp`
for f in `echo $py_files`
do
(sed -e 's/^/# /' maintainer/header_template.txt; cat $f) >$tmp
cp $tmp $f
done
for f in `echo $cpp_files`
do
(
echo '/*'
cat maintainer/header_template.txt
echo '*/' 
cat $f) >$tmp
cp $tmp $f
done




