2 # A simple script for making releases of mo-eval
3 # (c) 2005--2008 Martin Mares <mj@ucw.cz>
7 require "maint/release.pm";
9 my $r = new UCW::Release("mo-eval");
10 my $ver = $r->GetVersionFromFile("Makefile", "VERSION=(.*)");
11 #$r->GetVersionsFromChangelog("ChangeLog", "Released as (.*)\.");
12 unshift @{$r->{"rules"}}, '^(problems|testing|solutions|maint|certs)/.*' => '-';
13 push @{$r->{"directories"}}, "problems", "testing", "solutions";
14 push @{$r->{"uploads"}}, {
15 "url" => "scp://atrey.karlin.mff.cuni.cz/~ftp/pub/local/mj/eval/"
17 "url" => "scp://jabberwock.ucw.cz/~ftp/pub/mj/eval/"
20 $r->InitDist("maint/dist");
22 $r->GenFile("README");
25 if ($r->{"do_upload"}) {
26 print "Updating documentation at Jabberwock\n";
27 `rsync -a doc/. jabberwock.ucw.cz:www/mo-eval/`; die if $?;