Add a copyright license header to all CPP and H files
#!/bin/bash
read -r -d '' license <<-"EOF"
/* Copyright (c) 2010-2017, Delft University of Technology
* All rigths reserved
*
* This file is part of the Tudat. Redistribution and use in source and
* binary forms, with or without modification, are permitted exclusively
* under the terms of the Modified BSD license. You should have received
* a copy of the license with this file. If not, please or visit:
* http://tudat.tudelft.nl/LICENSE.
*/
EOF
files=$(grep -rL "Copyright (c) 2010-2017, Delft University of Technology" * | grep "\.h\|\.cpp")
for f in $files
do
echo -e "$license" > temp
cat $f >> temp
mv temp $f
done