From 822c072cfa0f1e4ac304343d78e024ba19da34a8 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 10 Jul 2003 20:34:29 +0000 Subject: * Compress Nix archives when pushing them. --- scripts/nix-push | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'scripts/nix-push') diff --git a/scripts/nix-push b/scripts/nix-push index 248a3b9174d6..bf30f3a49d7f 100644 --- a/scripts/nix-push +++ b/scripts/nix-push @@ -33,7 +33,7 @@ foreach my $hash (@ARGV) { if ($path =~ /-s-([0-9a-z]{32}).nix$/) { $name = "$name-s-$1"; } - $name = $name . ".nar"; + $name = $name . ".nar.bz2"; # Construct a Fix expression that creates a Nix archive. my $fixexpr = @@ -65,4 +65,6 @@ foreach my $hash (@ARGV) { } # Push the prebuilts to the server. !!! FIXME -system "rsync -av -e ssh @pushlist eelco\@losser.st-lab.cs.uu.nl:/home/eelco/public_html/nix-dist/"; +if (scalar @pushlist > 0) { + system "rsync -av -e ssh @pushlist eelco\@losser.st-lab.cs.uu.nl:/home/eelco/public_html/nix-dist/"; +} -- cgit 1.4.1