File tree 1 file changed +31
-0
lines changed
1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments