]> mj.ucw.cz Git - pciutils.git/blob - maint/release
Squashed compiler warnings about code with no effect
[pciutils.git] / maint / release
1 #!/usr/bin/perl
2 # A simple script for making releases of the pciutils
3 # (c) 2003--2006 Martin Mares <mj@ucw.cz>
4
5 use strict;
6 use warnings;
7 require "maint/release.pm";
8
9 # Check API version
10 my $apiver = "???";
11 open X, "lib/pci.h" or die;
12 while (<X>) {
13         /^#define PCI_LIB_VERSION 0x(.{6})$/ and $apiver = $1;
14 }
15 print "API version is $apiver ... <confirm> "; <STDIN>;
16
17 my $r = new UCW::Release("pciutils");
18 my $ver = $r->GetVersionFromFile("Makefile", "VERSION=(.*)");
19 $r->GetVersionsFromChangelog("ChangeLog", "Released as (.*)\.");
20 push @{$r->{"rules"}}, '^win32/config.h' => 's';
21 if ($ver =~ /-/) {
22         $r->{"ALPHADIR"} = "alpha/";
23         $r->{"conditions"}->{"ALPHA_VERSION"} = 1;
24 } else {
25         $r->{"ALPHADIR"} = "";
26         $r->{"conditions"}->{"ALPHA_VERSION"} = -1;
27 }
28 push @{$r->{"uploads"}}, {
29         "url" => "scp://atrey.karlin.mff.cuni.cz/~ftp/pub/linux/pci/" . $r->{"ALPHADIR"}
30         },{
31         "url" => "scp://master.kernel.org/pub/software/utils/pciutils/" . $r->{"ALPHADIR"}
32         };
33 push @{$r->{"uploads"}}, {
34         "url" => "ftp://metalab.unc.edu/incoming/linux/",
35         "filter" => '(\.tar\.gz|\.lsm)$'
36         } if $r->{"ALPHADIR"} eq "";
37 $r->ParseOptions;
38 $r->InitDist("maint/dist");
39 my $reldir = $r->GenPackage;
40 $r->GenFile("README");
41 $r->GenFile("pciutils.lsm");
42 $r->Dispatch;
43 if ($r->{"do_upload"}) {
44         print "Uploading pci.ids to Jabberwock\n";
45         `scp -C pci.ids pciids\@jabberwock.ucw.cz:05-pciutils.new`; die if $?;
46         `ssh pciids\@jabberwock.ucw.cz mv 05-pciutils.new origs/05-pciutils`; die if $?;
47 }