Skip to content

Commit 8905560

Browse files
committed
Adding header file and modified addlicense script to read from it
1 parent 44e8d44 commit 8905560

2 files changed

Lines changed: 23 additions & 22 deletions

File tree

HEADER.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
* BioJava development code
3+
*
4+
* This code may be freely distributed and modified under the
5+
* terms of the GNU Lesser General Public Licence. This should
6+
* be distributed with the code. If you do not have a copy,
7+
* see:
8+
*
9+
* http://www.gnu.org/copyleft/lesser.html
10+
*
11+
* Copyright for this code is held jointly by the individual
12+
* authors. These should be listed in @author doc comments.
13+
*
14+
* For more information on the BioJava project and its aims,
15+
* or to join the biojava-l mailing list, visit the home page
16+
* at:
17+
*
18+
* http://www.biojava.org/
19+
*
20+
*/

development/addlicense.sh

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,13 @@
11
#!/bin/bash
22
# Adds the BioJava LGPL license statement to the top of every java file
33

4+
BASEDIR=$(dirname "$0")
5+
46
find . -iname '*.java' -exec grep -L 'http://www.gnu.org/copyleft/lesser.html' '{}' '+'|
57
xargs grep -Li 'copyright' |
68
while read file; do
79
echo "$file"
8-
cat >tmp.java <<END
9-
/*
10-
* BioJava development code
11-
*
12-
* This code may be freely distributed and modified under the
13-
* terms of the GNU Lesser General Public Licence. This should
14-
* be distributed with the code. If you do not have a copy,
15-
* see:
16-
*
17-
* http://www.gnu.org/copyleft/lesser.html
18-
*
19-
* Copyright for this code is held jointly by the individual
20-
* authors. These should be listed in @author doc comments.
21-
*
22-
* For more information on the BioJava project and its aims,
23-
* or to join the biojava-l mailing list, visit the home page
24-
* at:
25-
*
26-
* http://www.biojava.org/
27-
*
28-
*/
29-
END
10+
cat $BASEDIR/../HEADER.txt > tmp.java
3011
cat "$file" >> tmp.java
3112
mv tmp.java "$file"
3213
done

0 commit comments

Comments
 (0)