Skip to content
Snippets Groups Projects
Commit 44ab6f2f authored by Martin Nilsson's avatar Martin Nilsson
Browse files

Test the copyright year in the installer.

Rev: tools/release_checks.pike:1.6
parent 79207ac4
No related branches found
No related tags found
No related merge requests found
...@@ -48,6 +48,18 @@ int test_master_year() { ...@@ -48,6 +48,18 @@ int test_master_year() {
return 1; 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) { int test_charset_table(string t) {
array names = ({}); array names = ({});
foreach( Stdio.read_file("src/modules/_Charset/"+t)/"\n", string line ) foreach( Stdio.read_file("src/modules/_Charset/"+t)/"\n", string line )
...@@ -165,6 +177,7 @@ void main(int args) { ...@@ -165,6 +177,7 @@ void main(int args) {
test_copyright(); test_copyright();
test_copying(); test_copying();
test_master_year(); test_master_year();
test_install_year();
test_charset_table("tables.c"); test_charset_table("tables.c");
test_charset_table("misc.c"); test_charset_table("misc.c");
test_unicode(); test_unicode();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment