File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+ */
Original file line number Diff line number Diff line change 11#! /bin/bash
22# Adds the BioJava LGPL license statement to the top of every java file
33
4+ BASEDIR=$( dirname " $0 " )
5+
46find . -iname ' *.java' -exec grep -L ' http://www.gnu.org/copyleft/lesser.html' ' {}' ' +' |
57xargs grep -Li ' copyright' |
68while 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 "
3213done
You can’t perform that action at this time.
0 commit comments