2 # A simple script for making releases of Moe
3 # (c) 2005--2012 Martin Mares <mj@ucw.cz>
7 require "maint/release.pm";
9 my $r = new UCW::Release("moe");
10 my $ver = $r->GetVersionFromFile("Makefile", "VERSION=(.*)");
11 unshift @{$r->{"rules"}}, '^(problems|testing|solutions|maint|certs)/.*' => '-';
12 push @{$r->{"directories"}}, "problems", "testing", "solutions";
13 push @{$r->{"uploads"}}, {
14 "url" => "scp://atrey.karlin.mff.cuni.cz/~ftp/pub/moe/"
16 "url" => "scp://jabberwock.ucw.cz/~ftp/pub/moe/"
18 $r->{'testmake'} = './configure mop/default.cfg && make -j4';
20 $r->InitDist("maint/dist");
22 $r->GenFile("README");
25 if ($r->{"do_upload"}) {
26 system "maint/upload-doc";