nixpkgs/pkgs/os-specific/linux/kernelscripts/builder.sh
Armijn Hemel 66c10e00e8 run depmod as well after having rebuilt everything
svn path=/nixpkgs/trunk/; revision=5865
2006-07-21 15:37:07 +00:00

19 lines
410 B
Bash
Executable file

#! /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