summaryrefslogtreecommitdiff
path: root/addlicensecomments.sh
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2010-11-29 20:13:04 +0200
committerPerttu Ahola <celeron55@gmail.com>2010-11-29 20:13:04 +0200
commitfc26dcdb19dd4e296d850714019ed7da1de0b021 (patch)
tree5e3f9f8d5399c6ea6cf5a8dd8f1b0741c3467411 /addlicensecomments.sh
parent0604f3f2eedb93d75ac20422849e4e710427621a (diff)
downloadminetest-fc26dcdb19dd4e296d850714019ed7da1de0b021.tar.gz
minetest-fc26dcdb19dd4e296d850714019ed7da1de0b021.tar.bz2
minetest-fc26dcdb19dd4e296d850714019ed7da1de0b021.zip
license stuff
--HG-- rename : src/licensecomment.txt => licensecomment.txt
Diffstat (limited to 'addlicensecomments.sh')
-rw-r--r--addlicensecomments.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/addlicensecomments.sh b/addlicensecomments.sh
new file mode 100644
index 000000000..e5642e82d
--- /dev/null
+++ b/addlicensecomments.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+for i in `grep -L 'This program is free software' src/*.{h,cpp}`
+do
+ cat licensecomment.txt > tempfile
+ cat $i >> tempfile
+ cp tempfile $i
+done
+rm tempfile
+