nixpkgs/pkgs/os-specific/linux/kernelscripts/builder.sh
Armijn Hemel a0d71d4a50 fixes, fixes, fixes
svn path=/nixpkgs/trunk/; revision=5863
2006-07-21 14:24:43 +00:00

18 lines
351 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^@nix\@^$nix^g" \
< $i > $dst
chmod +x $dst
done