Fork me on GitHub

source: git/doc/prepend_GPLv3_header.sh@ 5a697dde

ImprovedOutputFile Timing dual_readout llp
Last change on this file since 5a697dde was 1fa50c2, checked in by Pavel Demin <pavel.demin@…>, 10 years ago

fix GPLv3 header

  • Property mode set to 100644
File size: 303 bytes
RevLine 
[2e367af]1#! /bin/sh
2
3header=doc/GPLv3_header.txt
4length=`wc -l $header | cut -d' ' -f1`
5
6for file in `find . -maxdepth 2 -type f -name *.cpp -o -name *.cc -o -name *.h`
7do
[1fa50c2]8 head -$length $file | diff -lb $header - > /dev/null && continue
[2e367af]9 echo $file
10 cat $header $file > $file.new
11 mv $file.new $file
12done
Note: See TracBrowser for help on using the repository browser.