diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-04-06T22·19+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-04-06T22·19+0000 |
commit | 814b256da43ebdad79fe9544a59f6ae680da7cb9 (patch) | |
tree | c38a8d3d378e9efd0fc44cb0158a322c6ba104fe /test | |
parent | 2eea8832f0bc5f15979b5f091c3ac5f04593f0ca (diff) |
* Better installation: make directories, create database.
* Fixed the register script.
Diffstat (limited to 'test')
-rwxr-xr-x | test/register | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/test/register b/test/register index e03296495a92..57fe5b6c0d01 100755 --- a/test/register +++ b/test/register @@ -1,19 +1,19 @@ #! /bin/sh -mkdir -p $NIX/db -mkdir -p $NIX/pkg -mkdir -p $NIX/descr -mkdir -p $NIX/netcache +if test -z "$NIX"; then NIX=/nix; fi -nix init +echo target $NIX -if ! nix-instantiate $NIX/descr $NIX/netcache tmpl/*.nix; then +if ! nix-instantiate $NIX/var/nix/descriptors $NIX/var/nix/sources tmpl/*.nix; then exit 1; fi -for i in $NIX/netcache/*; do nix regfile $i; done -for i in build/*; do nix regfile $i; done -for i in $NIX/descr/*; do +rm -f build/*~ +cp -p build/* $NIX/var/nix/sources + +for i in $NIX/var/nix/sources/*; do nix regfile $i; done + +for i in $NIX/var/nix/descriptors/*; do md5sum $i nix regfile $i done |