delete this file (even though it should not be present at all. Probably a

braino on my side)

svn path=/nixpkgs/trunk/; revision=4566
This commit is contained in:
Armijn Hemel 2006-01-16 17:19:36 +00:00
parent c2bf8c47bc
commit c1679931f7

View File

@ -1,49 +0,0 @@
#! /bin/sh -e
archivesDir=$(mktemp -d)
manifest=${archivesDir}/MANIFEST
nixpkgs=/nixpkgs/trunk/pkgs
fill_disk=$archivesDir/scripts/fill-disk.sh
ramdisk_login=$archivesDir/scripts/ramdisk-login.sh
storePaths=$archivesDir/mystorepaths
validatePaths=$archivesDir/validatepaths
bootiso=/tmp/nixos.iso
initrd=/tmp/initram.img
initdir=${archivesDir}/initdir
initscript=$archivesDir/scripts/init.sh
NIX_CMD_PATH=$(dirname $(which nix-store))
cpwd=`pwd`
storeExpr=$($NIX_CMD_PATH/nix-store -qR $($NIX_CMD_PATH/nix-store -r $(echo '(import ./kernel.nix).everything' | $NIX_CMD_PATH/nix-instantiate -)))
kernel=$($NIX_CMD_PATH/nix-store -r $(echo '(import ./kernel.nix).kernel' | $NIX_CMD_PATH/nix-instantiate -))
ov511=$($NIX_CMD_PATH/nix-store -r $(echo '(import ./kernel.nix).ov511' | $NIX_CMD_PATH/nix-instantiate -))
echo $kernel
echo $ov511
echo making kernel stuff
kernelVersion=$(cd $kernel/lib/modules/; ls -d *)
mkdir -p $archivesDir/lib/modules/$kernelVersion
echo $kernelVersion
cd $kernel
# make directories
find . -not -path "./lib/modules/$kernelVersion/build*" -type d | xargs -n 1 -i% mkdir -p $archivesDir/%
# link all files
find . -not -path "./lib/modules/$kernelVersion/build*" -type f | xargs -n 1 -i% ln -s $kernel/% $archivesDir/%
# make directories
cd $ov511
find . -not -path "./lib/modules/$kernelVersion/build*" -type d | xargs -n 1 -i% mkdir -p $archivesDir/%
# link all files
find . -not -path "./lib/modules/$kernelVersion/build*" -type f | xargs -n 1 -i% ln -s $ov511/% $archivesDir/%