summaryrefslogtreecommitdiff
path: root/tools/relicense
diff options
context:
space:
mode:
authorsvntobi <svntobi@cd0d6b48-d4f9-0310-940f-ab8c4eb44d3f>2008-03-22 19:52:34 +0000
committersvntobi <svntobi@cd0d6b48-d4f9-0310-940f-ab8c4eb44d3f>2008-03-22 19:52:34 +0000
commitc5dfe5834603465b7597f7828400f0d23b3bed73 (patch)
treeec821f426b2ea6cc097ba56b15dde300992fc32b /tools/relicense
parent0ec2b0c38738bee536a4f94da5beb5638fc37f9d (diff)
downloadvdr-plugin-menuorg-c5dfe5834603465b7597f7828400f0d23b3bed73.tar.gz
vdr-plugin-menuorg-c5dfe5834603465b7597f7828400f0d23b3bed73.tar.bz2
- Using gettext / vdr 1.5.18 now
- remember cursor position when entering submenu - updated copyright header git-svn-id: file:///home/tobias/sandbox/vdr/--/vdr-pkg/vdr-pkg/menuorg/trunk@6965 cd0d6b48-d4f9-0310-940f-ab8c4eb44d3f
Diffstat (limited to 'tools/relicense')
-rwxr-xr-xtools/relicense15
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/relicense b/tools/relicense
new file mode 100755
index 0000000..526a16f
--- /dev/null
+++ b/tools/relicense
@@ -0,0 +1,15 @@
+#!/usr/bin/ruby
+
+header = IO.read(File.dirname(__FILE__) + "/sourcefileheader.txt")
+
+for file in Dir['./**/*.{h,cpp}']
+ if IO.read(file) =~ /(\/\*[\S\s]*?\*\/\n)(.*)/m
+ src = $2
+ if $1 =~ /.*Tobias Grimm.*/m
+ file = File.new(file, "w")
+ file.write(header)
+ file.write(src)
+ file.close
+ end
+ end
+end