initial commit
This commit is contained in:
commit
9d20827c46
2469 changed files with 470994 additions and 0 deletions
13
third-party/JsonQt/add-copyright-header.sh
vendored
Normal file
13
third-party/JsonQt/add-copyright-header.sh
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
NOTICE_HEADER="/* LICENSE NOTICE"
|
||||
TMPFILE=$(mktemp)
|
||||
for file in $(find -name *.cpp -o -name *.h); do
|
||||
if ! grep -q "$NOTICE_HEADER" "$file"; then
|
||||
echo "$NOTICE_HEADER" > $TMPFILE
|
||||
cat COPYING.HEADER >> $TMPFILE
|
||||
echo "*/" >> $TMPFILE
|
||||
cat "$file" >> $TMPFILE
|
||||
cat $TMPFILE > "$file"
|
||||
fi
|
||||
done
|
||||
rm $TMPFILE
|
||||
Reference in a new issue