2003-03-20 23:25:01 +01:00
|
|
|
#! /bin/sh
|
|
|
|
|
|
|
|
root=/home/eelco/Dev/nix/test
|
2003-03-21 15:10:06 +01:00
|
|
|
cd $root
|
2003-03-20 23:25:01 +01:00
|
|
|
|
2003-03-21 15:10:06 +01:00
|
|
|
mkdir -p db
|
|
|
|
mkdir -p pkg
|
|
|
|
mkdir -p descr
|
|
|
|
mkdir -p netcache
|
|
|
|
|
|
|
|
nix init
|
2003-03-20 23:25:01 +01:00
|
|
|
|
2003-03-21 15:10:06 +01:00
|
|
|
if ! nix-instantiate descr netcache tmpl/*.nix; then
|
2003-03-20 23:25:01 +01:00
|
|
|
exit 1;
|
|
|
|
fi
|
|
|
|
|
2003-03-21 15:10:06 +01:00
|
|
|
for i in netcache/*; do nix regfile $i; done
|
|
|
|
for i in build/*; do nix regfile $i; done
|
|
|
|
for i in descr/*; do
|
2003-03-20 23:25:01 +01:00
|
|
|
md5sum $i
|
|
|
|
nix regfile $i
|
|
|
|
done
|
|
|
|
|