mirror of
https://github.com/nasa/openmct.git
synced 2025-01-09 22:42:53 +00:00
30013f2bf5
Add script to add license headers, WTD-1051.
12 lines
197 B
Bash
Executable File
12 lines
197 B
Bash
Executable File
LICENSE=`cat $3`
|
|
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" |