Mercurial > hg
diff contrib/buildrpm @ 9811:c92ac5a56f69
buildrpm: enable to start the script from anywhere
Previously the script worked only from the hg root.
author | Gilles Moris <gilles.moris@free.fr> |
---|---|
date | Fri, 06 Nov 2009 09:35:38 +0100 |
parents | 326a0a6453a3 |
children | dd2c95fc4fe5 |
line wrap: on
line diff
--- 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`"