[PATCH 3 of 6] buildrpm: enable to start the script from anywhere
Gilles Moris
gilles.moris at free.fr
Mon Nov 9 03:21:44 CST 2009
contrib/buildrpm | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
# HG changeset patch
# User Gilles Moris <gilles.moris at free.fr>
# Date 1257496538 -3600
# Node ID 0f7e2c6445c41a83dd32d36f0f82cd5e0dcaf316
# Parent 70caa4aaceb43e12707e262d9c542ab1131db834
buildrpm: enable to start the script from anywhere
Previously the script worked only from the hg root.
diff --git a/contrib/buildrpm b/contrib/buildrpm
--- a/contrib/buildrpm
+++ b/contrib/buildrpm
@@ -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`"
More information about the Mercurial-devel
mailing list