2 # A simple script for making releases of the pciutils
3 # (c) 2003 Martin Mares <mj@ucw.cz>
7 require "maint/release.pm";
9 my $r = new UCW::Release("pciutils");
10 my $ver = $r->GetVersionFromFile("Makefile", "VERSION=(.*)");
11 $r->GetVersionsFromChangelog("ChangeLog", "Released as (.*)\.");
13 $r->{"ALPHADIR"} = "alpha/";
14 $r->{"conditions"}->{"ALPHA_VERSION"} = 1;
16 $r->{"ALPHADIR"} = "";
17 $r->{"conditions"}->{"ALPHA_VERSION"} = -1;
19 push @{$r->{"uploads"}}, {
20 "url" => "scp://atrey.karlin.mff.cuni.cz/~ftp/pub/linux/pci/" . $r->{"ALPHADIR"}
22 "url" => "scp://master.kernel.org/~ftp/pub/software/utils/pciutils/" . $r->{"ALPHADIR"}
24 push @{$r->{"uploads"}}, {
25 "url" => "ftp://metalab.unc.edu/incoming/linux/",
26 "filter" => '(\.tar\.gz|\.lsm)$'
27 } if !defined $r->{"ALPHADIR"};
29 $r->InitDist("maint/dist");
30 my $reldir = $r->GenPackage;
31 $r->GenFile("README");
32 $r->GenFile("pciutils.lsm");
34 if ($r->{"do_upload"}) {
35 print "Uploading pci.ids to Jabberwock\n";
36 `scp pci.ids pciids\@jabberwock.ucw.cz:05-pciutils.new`; die if $?;
37 `ssh pciids\@jabberwock.ucw.cz mv 05-pciutils.new origs/05-pciutils`; die if $?;