+2009-12-01 Markus Gutschke <markus@shellinabox.com>
+
+ * Added some basic sanity checks to the commit script that now makes
+ sure we at least attempt to keep copyright dates updated whenever we
+ make changes.
+
2009-11-29 Markus Gutschke <markus@shellinabox.com>
* Preparations for packaging ShellInABox in a way that makes it
# Update "configure.ac" with the next Subversion revision number. This
# information will trickle down into various source files where it becomes
# part of the user-visible version information.
-sed -ie 's/^\(VCS_REVISION=\).*/\1'"${rev}"'/' configure.ac
+sed -i -e 's/^\(VCS_REVISION=\).*/\1'"${rev}"'/' configure.ac
touch shellinabox/vt100.jspp shellinabox/shell_in_a_box.jspp
+# If the manual page has been changed, make sure that the time stamp will be
+# changed, too.
+if [ -n "$(svn st shellinabox/shellinaboxd.man.in 2>/dev/null |
+ grep '^M')" ]; then
+ sed -i -e 's/^\([.]TH .*\)"[^"]*"/\1"'"$(date +'%b %d, %Y')"'"/
+ s/2008-2[01][0-9][0-9]/2008-'"$(date +'%Y')"'/g' \
+ shellinabox/shellinaboxd.man.in
+fi
+
+# Always update the year in the user visible copyright statement(s)
+for i in shellinabox/shell_in_a_box.jspp \
+ shellinabox/vt100.jspp \
+ COPYING \
+ debian/copyright; do
+ sed -i -e 's/\(2[01][0-9][0-9]-\)2[01][0-9][0-9]/\1'"$(date +'%Y')"'/g' "$i"
+done
+
+# If a source file has changed, make sure to update the year in the copyright
+# statement for that particular file.
+svn st | egrep '^[MA]' | awk '{ print $2 }' |
+ egrep '^(shellinabox|libhttp|demo)/' |
+ egrep '[.](html|h|c|css|jspp)$' |
+ while read -r f; do
+ sed -i -e 's/\(2[01][0-9][0-9]-\)2[01][0-9][0-9]/\1'"$(date +'%Y')"'/g' "$f"
+ done
+
# For now, Ubuntu/Hardy is still quite popular. We want to make it easy for
# our users to build Debian packages from source. So, make sure we lock the
# compatibility level at 6. Once we no longer care about maintaining strict
#define STDC_HEADERS 1
/* Most recent revision number in the version control system */
-#define VCS_REVISION "192"
+#define VCS_REVISION "193"
/* Version number of package */
#define VERSION "2.10"
ac_compiler_gnu=$ac_cv_c_compiler_gnu
-VCS_REVISION=192
+VCS_REVISION=193
cat >>confdefs.h <<_ACEOF
dnl This is the one location where the authoritative version number is stored
AC_INIT(shellinabox, 2.10, markus@shellinabox.com)
-VCS_REVISION=192
+VCS_REVISION=193
AC_SUBST(VCS_REVISION)
AC_DEFINE_UNQUOTED(VCS_REVISION, "${VCS_REVISION}",
[Most recent revision number in the version control system])
};
VT100.prototype.about = function() {
- alert("VT100 Terminal Emulator " + "2.10 (revision 192)" +
+ alert("VT100 Terminal Emulator " + "2.10 (revision 193)" +
"\nCopyright 2008-2009 by Markus Gutschke\n" +
"For more information check http://shellinabox.com");
};
};
ShellInABox.prototype.about = function() {
- alert("Shell In A Box version " + "2.10 (revision 192)" +
+ alert("Shell In A Box version " + "2.10 (revision 193)" +
"\nCopyright 2008-2009 by Markus Gutschke\n" +
"For more information check http://shellinabox.com" +
(typeof serverSupportsSSL != 'undefined' && serverSupportsSSL ?
};
VT100.prototype.about = function() {
- alert("VT100 Terminal Emulator " + "2.10 (revision 192)" +
+ alert("VT100 Terminal Emulator " + "2.10 (revision 193)" +
"\nCopyright 2008-2009 by Markus Gutschke\n" +
"For more information check http://shellinabox.com");
};