1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
#!/bin/bash # # Add license to files where missing (is this really necessary?!) hxfiles=`find . -name "*.*hx" -a ! -wholename "*/restricted/*" -a ! -wholename "*/.svn/*"` hxtxt=doc/license_hx.txt echo Processing HaXe files... for i in $hxfiles; do if ! grep -q "<license>" $i; then echo -e "\t$i" cat $hxtxt $i > /tmp/file cp /tmp/file $i fi done |