]> mj.ucw.cz Git - pciutils.git/commitdiff
Some more fixes to the release scripts
authorMartin Mares <mj@ucw.cz>
Sat, 27 Dec 2003 13:35:03 +0000 (13:35 +0000)
committerMartin Mares <mj@ucw.cz>
Fri, 5 May 2006 12:18:15 +0000 (14:18 +0200)
git-archimport-id: mj@ucw.cz--public/pciutils--main--2.2--patch-31

maint/release
maint/release.pm

index 073836d5e7457e276b967d5b65e79adfd4c9b98b..f33ef745c3c8d45dcb8fade1b01e13bf2613c2e2 100755 (executable)
@@ -33,6 +33,6 @@ $r->GenFile("pciutils.lsm");
 $r->Dispatch;
 if ($r->{"do_upload"}) {
        print "Uploading pci.ids to Jabberwock\n";
-       `scp pci.ids pciids\@jabberwock.ucw.cz:05-pciutils.new`; die if $?;
+       `scp -C pci.ids pciids\@jabberwock.ucw.cz:05-pciutils.new`; die if $?;
        `ssh pciids\@jabberwock.ucw.cz mv 05-pciutils.new origs/05-pciutils`; die if $?;
 }
index a3c88ec389d8ba7ffe23862a3d826f5d4e3ff2ea..73d2494919170d0af6109c264fbfecd19794d7f9 100644 (file)
@@ -275,7 +275,11 @@ sub Upload($) {
                print "<confirm> "; <STDIN>;
                if ($url =~ m@^scp://([^/]+)(.*)@) {
                        $, = " ";
-                       my $cmd = "scp @files $1:$2\n";
+                       my $host = $1;
+                       my $dir = $2;
+                       $dir =~ s@^/~@~@;
+                       $dir =~ s@^/\./@@;
+                       my $cmd = "scp @files $host:$dir\n";
                        `$cmd`; die if $?;
                } elsif ($url =~ m@ftp://([^/]+)(.*)@) {
                        my $host = $1;