This got... long... and complicated. But I think it's a really good demonstration of getting redo to do complicated things elegantly. At least, I hope it is.
9 lines
148 B
Text
9 lines
148 B
Text
d=$PWD
|
|
redo-ifchange "$2.fs" "$2.list"
|
|
|
|
sed -e 's/ [^ ]*$//' <$2.list |
|
|
(
|
|
cd "$2"
|
|
"$d/try_fakeroot.sh" "$d/$2.fakeroot" \
|
|
cpio -Hustar -o
|
|
) >$3
|