This patch makes the ratproxy-report script work when run not from the
original source tree. Added on Fri, 10 Apr 2009 14:58:12 +0200, in
1.56+dfsg-1.
The patch is a modified form of the patch available at
http://code.google.com/p/ratproxy/issues/detail?id=11, which was written
by adamsc@gmail.com. This customized version fixes the problem in the
context of the debian packaging (where the messages.list file is
installed under /usr/share/ratproxy, and not near the report script).
Iustin Pop <iusty@k1024.org>
--- a/ratproxy-report.sh
+++ b/ratproxy-report.sh
@@ -37,6 +37,8 @@
exit 1
fi
+MESSAGES=/usr/share/ratproxy/messages.list
+
test "$RAT_URLPREFIX" = "" || RAT_URLPREFIX="/$RAT_URLPREFIX/"
# Output prologue...
@@ -214,7 +216,7 @@
fi
echo "<font color=darkslateblue>"
- grep -F "~$desc~" messages.list | cut -d'~' -f3
+ grep -F "~$desc~" "$MESSAGES" | cut -d'~' -f3
echo "</font></font><p>"
PREVDESC="$desc"