summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/release24
-rwxr-xr-xtools/relicense15
-rw-r--r--tools/sourcefileheader.txt22
3 files changed, 61 insertions, 0 deletions
diff --git a/tools/release b/tools/release
new file mode 100755
index 0000000..d7c8e09
--- /dev/null
+++ b/tools/release
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+set -e
+
+# clean
+make clean
+
+make update-po
+
+if [ -n "`svn st`" ] ; then
+ echo "uncommited changes !!!"
+ exit 1
+fi
+
+# make distribution tarball
+make dist
+
+# read version
+VERSION=`grep 'static const char VERSION\[\] =' src/version.h | awk '{ print $6 }' | sed -e 's/[";]//g'`
+
+# tag version
+echo "Tagging: $VERSION"
+svn cp -m "Releasing Menuorg $VERSION" svn+e-tobi://e-tobi.net/menuorg/trunk \
+ "svn+e-tobi://e-tobi.net/menuorg/tags/$VERSION"
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
diff --git a/tools/sourcefileheader.txt b/tools/sourcefileheader.txt
new file mode 100644
index 0000000..1904bf1
--- /dev/null
+++ b/tools/sourcefileheader.txt
@@ -0,0 +1,22 @@
+/*
+ * vdr-menuorg - A plugin for the Linux Video Disk Recorder
+ * Copyright (c) 2007 - 2008 Tobias Grimm <vdr@e-tobi.net>
+ * Copyright (c) 2007 Thomas Creutz <thomas.creutz@gmx.de>
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * $Id$
+ *
+ */