* Generate nix-cache-info.

git-svn-id: https://nixos.org/repos/nix/release/trunk/channels@34595 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
This commit is contained in:
Eelco Dolstra 2012-07-30 22:53:19 +00:00
parent 616b63a54d
commit 6ef672d390

View file

@ -6,6 +6,13 @@ use File::Basename;
my $cacheDir = "/data/releases/binary-cache";
if (! -e "$cacheDir/nix-cache-info") {
open FILE, ">$cacheDir/nix-cache-info" or die;
print FILE "StoreDir: /nix/store\n";
print FILE "WantMassQuery: 1\n";
close FILE;
}
my @manifests = split " ", `find /data/releases/{nixos,nixpkgs,nix,patchelf} -name MANIFEST | grep -v '.tmp' | sort`;
die if $? != 0;
#my @manifests = ("/data/releases/nixpkgs/nixpkgs-0.5/MANIFEST");