From 81172a77e6e15f310842a4a5181bbce517b4cb8d Mon Sep 17 00:00:00 2001 From: Alexander Kjeldaas Date: Tue, 22 Apr 2014 13:02:43 +0200 Subject: Document paths-from-graph.pl somewhat. --- pkgs/build-support/kernel/paths-from-graph.pl | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/pkgs/build-support/kernel/paths-from-graph.pl b/pkgs/build-support/kernel/paths-from-graph.pl index f18662372103..9a199a2b3044 100644 --- a/pkgs/build-support/kernel/paths-from-graph.pl +++ b/pkgs/build-support/kernel/paths-from-graph.pl @@ -1,9 +1,27 @@ +# Parses a /nix/store/*-closure file and prints +# various information. +# By default, the nodes in the graph are printed to stdout. +# If the environment variable printManifest is set, +# then the graph is written as a manifest. +# If printRegistration is set, then the graph is written +# as a registration file for a manifest is written +# in the `nix-store --load-db' format. + use strict; use File::Basename; my %storePaths; my %refs; +# Each argument on the command line is a graph file. +# The graph file contains line-triples and a variable +# number of references: +# +# +# +# +# ... +# foreach my $graph (@ARGV) { open GRAPH, "<$graph" or die; -- cgit 1.4.1