Commit aaf4eddc authored by Mike Hibler's avatar Mike Hibler

Bug Fix: redo last commit so it works for either absolute or relative $srcdir

parent 7ae8e905
......@@ -37,7 +37,15 @@ if [ ! -d $dir/iperf-$version/src ]; then
echo "ERROR: iperf-fetch.sh: tar failed"
exit 1
}
cd iperf-$version && patch -p0 < ../$srcdir/iperf-patch || {
# XXX hack to deal with relative paths...argh!
case $srcdir in
/*)
;;
*)
srcdir="../$srcdir"
;;
esac
cd iperf-$version && patch -p0 < $srcdir/iperf-patch || {
echo "ERROR: iperf-fetch.sh: patch failed"
exit 1
}
......
......@@ -40,7 +40,16 @@ if [ ! -d $dir/rude-$version/src ]; then
if [ -d rude -a ! -d rude-$version ]; then
mv rude rude-$version
fi
cd rude-$version && patch -p0 < ../$srcdir/rude-patch || {
# XXX hack to deal with relative paths...argh!
case $srcdir in
/*)
;;
*)
srcdir="../$srcdir"
;;
esac
cd rude-$version && patch -p0 < $srcdir/rude-patch || {
echo "ERROR: rude-fetch.sh: patch failed"
exit 1
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment