Replace the usage of readlink's -f option (which is only available in

GNUs coreutils) by something more sophisticated which is compatible
with both, Linux and the BSDs (fixes issue 526)
This commit is contained in:
Thomas Keller
2010-11-30 00:24:33 +01:00
parent dc2881ad02
commit 28f36dc7b0
3 changed files with 11 additions and 4 deletions

View File

@@ -18,7 +18,9 @@
# www$ ln -s /home/www/indefero/scripts/svn-post-revprop-change post-revprop-change
#
SCRIPTDIR=$(dirname $(readlink -f $0))
dir=$(dirname "$0")
res=$(cd "$dir" && /bin/pwd || "$dir")
SCRIPTDIR="$res/$(readlink $0)"
PHP_POST_REVPROP=$SCRIPTDIR/svnpostrevpropchange.php
echo php $PHP_POST_REVPROP "$1" "$2" "$3" "$4" "$5" | at now > /dev/null 2>&1