Skip to content

Commit 95f9b0f

Browse files
committed
Add addlicense.sh script
1 parent 7460b2a commit 95f9b0f

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

development/addlicense.sh

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/bin/bash
2+
# Adds the BioJava LGPL license statement to the top of every java file
3+
4+
find . -iname '*.java' -exec grep -L 'http://www.gnu.org/copyleft/lesser.html' '{}' ';' |
5+
while read file; do
6+
echo "$file"
7+
cat >tmp.java <<END
8+
/*
9+
* BioJava development code
10+
*
11+
* This code may be freely distributed and modified under the
12+
* terms of the GNU Lesser General Public Licence. This should
13+
* be distributed with the code. If you do not have a copy,
14+
* see:
15+
*
16+
* http://www.gnu.org/copyleft/lesser.html
17+
*
18+
* Copyright for this code is held jointly by the individual
19+
* authors. These should be listed in @author doc comments.
20+
*
21+
* For more information on the BioJava project and its aims,
22+
* or to join the biojava-l mailing list, visit the home page
23+
* at:
24+
*
25+
* http://www.biojava.org/
26+
*
27+
*/
28+
END
29+
cat "$file" >> tmp.java
30+
mv tmp.java "$file"
31+
done

0 commit comments

Comments
 (0)