From 44ab6f2f7242eb42eeb390d94d3a7bed79a4a20f Mon Sep 17 00:00:00 2001 From: Martin Nilsson <mani@lysator.liu.se> Date: Tue, 21 Oct 2003 04:48:45 +0200 Subject: [PATCH] Test the copyright year in the installer. Rev: tools/release_checks.pike:1.6 --- tools/release_checks.pike | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tools/release_checks.pike b/tools/release_checks.pike index ac469b0180..f752f5a08b 100644 --- a/tools/release_checks.pike +++ b/tools/release_checks.pike @@ -48,6 +48,18 @@ int test_master_year() { return 1; } +int test_install_year() { + int y; + sscanf(Stdio.read_file("bin/install.pike"), + "%*s 1994-%d IDA", y); + if(gmtime(time())->year+1900 != y) { + write("The year in the copyright message in install.pike\n" + "needs an update.\n"); + return 0; + } + return 1; +} + int test_charset_table(string t) { array names = ({}); foreach( Stdio.read_file("src/modules/_Charset/"+t)/"\n", string line ) @@ -165,6 +177,7 @@ void main(int args) { test_copyright(); test_copying(); test_master_year(); + test_install_year(); test_charset_table("tables.c"); test_charset_table("misc.c"); test_unicode(); -- GitLab