1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 06:01:15 +00:00
nixpkgs/pkgs/os-specific/linux/ext3cow-tools/builder.sh
Wouter den Breejen 039449a672 Updated builder to use a * in: /lib/modules/*/build/include/...
svn path=/nixpkgs/trunk/; revision=9518
2007-10-24 14:09:56 +00:00

20 lines
435 B
Bash
Executable file

source $stdenv/setup
tar -zxvf $src
cd ext3cow-tools/
echo "Using: $kernel"
kernerlext3cowheader=$(ls $kernel/lib/modules/*/build/include/linux/ext3cow_fs.h)
kernerlext3cowheader_slashed=$(echo $kernerlext3cowheader | sed 's/\//\\\//g')
sed -i "s/linux\/ext3cow_fs.h/$kernerlext3cowheader_slashed/" ext3cow_tools.h #ugh dirty header rewrite....
make
ensureDir $out/bin/
cp ss $out/bin/snapshot
cp tt $out/bin/
cp e2d $out/bin/