#!/bin/bash

# Copyright (C) 2010 Mario Castelan Castro

# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved.  This file is offered as-is,
# without any warranty.

cat <<EOF > LICENSE.tmp
/*
EOF

cat LICENSE >> LICENSE.tmp
cat <<EOF >> LICENSE.tmp
*/

EOF

for file in $(find -name "*.cc") $(find -name "*.hh"); do
    cat LICENSE.tmp $file > $file.tmp
    mv -f $file.tmp $file
done

rm LICENSE.tmp
