nixpkgs/pkgs/os-specific/linux/kernelscripts/builder.sh
Armijn Hemel 488dc36428 move kernelscripts to nixpkgs
svn path=/nixpkgs/trunk/; revision=4564
2006-01-16 17:12:42 +00:00

16 lines
258 B
Bash
Executable File

#! /bin/sh -e
. $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^@nix\@^$nix^g" \
< $i > $dst
chmod +x $dst
done