summaryrefslogtreecommitdiffstats
path: root/pkgs/os-specific/linux/ext3cow-tools/builder.sh
blob: 560b8d6723ab292c1b13d6a4f4a2c49b74bc1660 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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/