cleanups
svn path=/nixpkgs/trunk/; revision=5866
This commit is contained in:
parent
66c10e00e8
commit
80b7adab70
@ -1,20 +1,13 @@
|
|||||||
#! /bin/sh -e
|
#! /bin/sh -e
|
||||||
|
|
||||||
#archivesDir=$(@mktemp@/bin/mktemp -d)
|
|
||||||
archivesDir=/
|
archivesDir=/
|
||||||
|
|
||||||
cpwd=@coreutils@/bin/pwd
|
|
||||||
|
|
||||||
#storeExpr=$(@nix@/bin/nix-store -qR $(@nix@/bin/nix-store -r $(echo '(import @kernelpkgs@).everything' | @nix@/bin/nix-instantiate -)))
|
|
||||||
|
|
||||||
kernel=$(@nix@/bin/nix-store -r $(echo '(import @kernelpkgs@).kernel' | @nix@/bin/nix-instantiate -))
|
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 -))
|
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 -))
|
module_init_tools=$(@nix@/bin/nix-store -r $(echo '(import @kernelpkgs@).module_init_tools' | @nix@/bin/nix-instantiate -))
|
||||||
|
|
||||||
#echo making kernel stuff
|
|
||||||
|
|
||||||
kernelVersion=$(cd $kernel/lib/modules/; @coreutils@/bin/ls -d *)
|
kernelVersion=$(cd $kernel/lib/modules/; @coreutils@/bin/ls -d *)
|
||||||
|
|
||||||
echo removing old kernel tree
|
echo removing old kernel tree
|
||||||
@ -25,15 +18,13 @@ echo making new kernel tree
|
|||||||
|
|
||||||
@coreutils@/bin/mkdir -p $archivesDir/lib/modules/$kernelVersion
|
@coreutils@/bin/mkdir -p $archivesDir/lib/modules/$kernelVersion
|
||||||
|
|
||||||
#echo $kernelVersion
|
|
||||||
|
|
||||||
cd $kernel
|
cd $kernel
|
||||||
|
|
||||||
echo making kernel directories
|
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/%
|
@findutils@/bin/find . -not -path "./lib/modules/$kernelVersion/build*" -type d | @findutils@/bin/xargs -n 1 -i% @coreutils@/bin/mkdir -p $archivesDir/%
|
||||||
|
|
||||||
echo linking kernel modules
|
echo symlinking kernel modules
|
||||||
|
|
||||||
@findutils@/bin/find . -not -path "./lib/modules/$kernelVersion/build*" \
|
@findutils@/bin/find . -not -path "./lib/modules/$kernelVersion/build*" \
|
||||||
-a -not -path "./System*" -a -not -path "./vmlinuz*" \
|
-a -not -path "./System*" -a -not -path "./vmlinuz*" \
|
||||||
@ -44,7 +35,7 @@ echo making ov511 directories
|
|||||||
cd $ov511
|
cd $ov511
|
||||||
@findutils@/bin/find . -not -path "./lib/modules/$kernelVersion/build*" -type d | @findutils@/bin/xargs -n 1 -i% @coreutils@/bin/mkdir -p $archivesDir/%
|
@findutils@/bin/find . -not -path "./lib/modules/$kernelVersion/build*" -type d | @findutils@/bin/xargs -n 1 -i% @coreutils@/bin/mkdir -p $archivesDir/%
|
||||||
|
|
||||||
echo linking ov511 modules
|
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/%
|
@findutils@/bin/find . -not -path "./lib/modules/$kernelVersion/build*" -type f | @findutils@/bin/xargs -n 1 -i% @coreutils@/bin/ln -s $ov511/% $archivesDir/%
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user