]> mj.ucw.cz Git - moe.git/blob - maint/release
Added --force.
[moe.git] / maint / release
1 #!/usr/bin/perl
2 # A simple script for making releases of mo-eval
3 # (c) 2005 Martin Mares <mj@ucw.cz>
4
5 use strict;
6 use warnings;
7 require "maint/release.pm";
8
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)/.*' => '-';
13 push @{$r->{"directories"}}, "problems", "testing", "solutions";
14 push @{$r->{"uploads"}}, {
15         "url" => "scp://atrey.karlin.mff.cuni.cz/~ftp/pub/local/mj/eval/"
16         };
17 $r->ParseOptions;
18 $r->InitDist("maint/dist");
19 $r->GenPackage;
20 $r->GenFile("README");
21 $r->Dispatch;
22
23 if ($r->{"do_upload"}) {
24         print "Updating checked-out documentation at Atrey\n";
25         `ssh atrey cd src/eval && Cu`; die if $?;
26 }