lix/test/register
Eelco Dolstra 814b256da4 * Better installation: make directories, create database.
* Fixed the register script.
2003-04-06 22:19:26 +00:00

20 lines
356 B
Bash
Executable file

#! /bin/sh
if test -z "$NIX"; then NIX=/nix; fi
echo target $NIX
if ! nix-instantiate $NIX/var/nix/descriptors $NIX/var/nix/sources tmpl/*.nix; then
exit 1;
fi
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