readlinks does not do what we wnat on BSD
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Tue, 05 Jun 2012 21:42:12 +0200
changeset 256 909a3a079daf
parent 255 9852b3ef7234
child 257 bbd1adb262fd
readlinks does not do what we wnat on BSD
enable.sh
--- a/enable.sh	Wed Jun 06 01:06:11 2012 +0200
+++ b/enable.sh	Tue Jun 05 21:42:12 2012 +0200
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-here=`readlink -f "$0"`
+here=`python -c "import os; print os.path.realpath('$0')"`
 repo_root=`dirname "$here"`
 
 if !( hg --version -q | grep -qe 'version 2\.[1-9]' ); then