remove scripts

svn path=/nixpkgs/trunk/; revision=5981
This commit is contained in:
Armijn Hemel 2006-07-28 12:48:19 +00:00
parent 05fad51550
commit a9d8252365
4 changed files with 0 additions and 78 deletions

View File

@ -1,18 +0,0 @@
#! /bin/sh -e
source $stdenv/setup
mkdir $out
mkdir $out/bin
for i in $createModules; do
dst=$out/bin/$(basename $i | cut -c34-)
sed \
-e "s^@coreutils\@^$coreutils^g" \
-e "s^@findutils\@^$findutils^g" \
-e "s^@kernelpkgs\@^$kernelpkgs^g" \
-e "s^@module_init_tools\@^$module_init_tools^g" \
-e "s^@nix\@^$nix^g" \
< $i > $dst
chmod +x $dst
done

View File

@ -1,44 +0,0 @@
#! /bin/sh -e
archivesDir=/
kernel=$(@nix@/bin/nix-store -r $(echo '(import @kernelpkgs@).kernel' | @nix@/bin/nix-instantiate -))
ov511=$(@nix@/bin/nix-store -r $(echo '(import @kernelpkgs@).ov511' | @nix@/bin/nix-instantiate -))
module_init_tools=$(@nix@/bin/nix-store -r $(echo '(import @kernelpkgs@).module_init_tools' | @nix@/bin/nix-instantiate -))
kernelVersion=$(cd $kernel/lib/modules/; @coreutils@/bin/ls -d *)
echo removing old kernel tree
@coreutils@/bin/rm -rf $archivesDir/lib/modules/$kernelVersion
echo making new kernel tree
@coreutils@/bin/mkdir -p $archivesDir/lib/modules/$kernelVersion
cd $kernel
echo making kernel directories
@findutils@/bin/find . -not -path "./lib/modules/$kernelVersion/build*" -type d | @findutils@/bin/xargs -n 1 -i% @coreutils@/bin/mkdir -p $archivesDir/%
echo symlinking kernel modules
@findutils@/bin/find . -not -path "./lib/modules/$kernelVersion/build*" \
-a -not -path "./System*" -a -not -path "./vmlinuz*" \
-type f | @findutils@/bin/xargs -n 1 -i% @coreutils@/bin/ln -s $kernel/% $archivesDir/%
echo making ov511 directories
cd $ov511
@findutils@/bin/find . -not -path "./lib/modules/$kernelVersion/build*" -type d | @findutils@/bin/xargs -n 1 -i% @coreutils@/bin/mkdir -p $archivesDir/%
echo symlinking ov511 modules
@findutils@/bin/find . -not -path "./lib/modules/$kernelVersion/build*" -type f | @findutils@/bin/xargs -n 1 -i% @coreutils@/bin/ln -s $ov511/% $archivesDir/%
echo running depmod
@module_init_tools@/sbin/depmod -ae

View File

@ -1,10 +0,0 @@
{ stdenv, coreutils, nix, findutils, module_init_tools }:
derivation {
name = "kernelscripts";
system = stdenv.system;
builder = ./builder.sh;
createModules = ./create-modules.sh;
inherit stdenv coreutils nix findutils module_init_tools;
kernelpkgs = ./kernel.nix;
}

View File

@ -1,6 +0,0 @@
rec {
inherit (import /nixpkgs/trunk/pkgs/top-level/all-packages.nix {})
stdenv kernel ov511;
everything = [kernel ov511];
}