2 # A simple script for making releases of LibUCW
3 # (c) 2012--2014 Martin Mares <mj@ucw.cz>
7 require "maint/release.pm";
9 my $r = new UCW::Release("libucw");
10 $r->{"test_compile"} = "./configure && make -j4";
11 $r->{"archive_dir"} = $ENV{"HOME"} . "/archives/sw/libucw";
12 push @{$r->{"uploads"}}, { "url" => "scp://ftp.ucw.cz/~ftp/pub/libucw/" };
15 $r->GetVersionFromGit;
16 $r->InitDist("maint/tmp");
17 my $reldir = $r->GenPackage;
18 $r->GenFile("README");
23 if ($r->{"do_upload"}) {
24 my $tdir = $r->{"TESTDIR"};
26 print "Generating documentation\n";
27 `cd $tdir && make docs`;
29 print "Upload of documentation\n";
31 `cd $tdir && maint/upload-doc`;
34 print "WARNING: With --notest, no documentation is published!\n";
37 print "Updating version at MJ's web\n";
39 my $wv = $r->{"VERSION"};
40 `ssh jw "cd web && bin/release-prog libucw $wv"`;