2007-07-20 17:50:54 +02:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
tar -zxvf $src
|
|
|
|
cd ext3cow-tools/
|
|
|
|
|
2007-10-23 19:56:10 +02:00
|
|
|
echo "Using: $kernel"
|
|
|
|
|
2007-10-24 16:09:56 +02:00
|
|
|
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....
|
2007-07-20 17:50:54 +02:00
|
|
|
|
|
|
|
make
|
|
|
|
|
|
|
|
ensureDir $out/bin/
|
|
|
|
cp ss $out/bin/snapshot
|
|
|
|
cp tt $out/bin/
|
|
|
|
cp e2d $out/bin/
|