openmct/scripts/licenses.sh
Victor Woeltjen 6314507a4c [Licenses] Update license headers
WTD-1051.
2015-04-17 15:18:39 -07:00

12 lines
177 B
Bash
Executable File

MATCHES=`find $1 -name "*.$2" | grep -v /lib/`
for i in $MATCHES
do
if ! grep -q "$LICENSE" $i
then
cat $3 $i > "$i".new && mv "$i".new "$i"
fi
done
echo "$LICENSE"