# HG changeset patch # User Gilles Moris # Date 1257496538 -3600 # Node ID c92ac5a56f696d41f06fe9df31feb2b3a999db3d # Parent 326a0a6453a33130ac49ed21675b5034b8dd92c8 buildrpm: enable to start the script from anywhere Previously the script worked only from the hg root. diff -r 326a0a6453a3 -r c92ac5a56f69 contrib/buildrpm --- a/contrib/buildrpm Fri Nov 06 09:30:18 2009 +0100 +++ b/contrib/buildrpm Fri Nov 06 09:35:38 2009 +0100 @@ -9,8 +9,9 @@ # - Fedora 11 # - Centos 5.3 (with Fedora EPEL repo for asciidoc) -HG="`dirname $0`/../hg" -PYTHONPATH="`dirname $0`/../mercurial/pure" +cd "`dirname $0`/.." +HG="$PWD/hg" +PYTHONPATH="$PWD/mercurial/pure" export PYTHONPATH root="`$HG root 2>/dev/null`"