ImprovedOutputFile
Timing
dual_readout
llp
Last change
on this file since b4cd1e7 was 2e367af, checked in by Pavel Demin <demin@…>, 10 years ago |
add script that prepends GPLv3 header to all source code files
|
-
Property mode
set to
100644
|
File size:
302 bytes
|
Rev | Line | |
---|
[2e367af] | 1 | #! /bin/sh
|
---|
| 2 |
|
---|
| 3 | header=doc/GPLv3_header.txt
|
---|
| 4 | length=`wc -l $header | cut -d' ' -f1`
|
---|
| 5 |
|
---|
| 6 | for file in `find . -maxdepth 2 -type f -name *.cpp -o -name *.cc -o -name *.h`
|
---|
| 7 | do
|
---|
| 8 | head -$length $file | diff -l $header - > /dev/null && continue
|
---|
| 9 | echo $file
|
---|
| 10 | cat $header $file > $file.new
|
---|
| 11 | mv $file.new $file
|
---|
| 12 | done
|
---|
Note:
See
TracBrowser
for help on using the repository browser.