Menu

[r5763]: / branches / drjava-autorefresh / relicense  Maximize  Restore  History

Download this file

16 lines (12 with data), 292 Bytes

#!/bin/sh

# relicense: Changes the copyright/license block on *.java (recursively)
# to whatever's in ./COPYRIGHT.

for A in `find . -name *.java -o -name *.orig`; do
  mv $A $A.old
  cp COPYRIGHT $A
  ./strip-license < $A.old >> $A
  rm -f $A.old
  echo "$A"
done

echo ""
echo "All done."