Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
9810:326a0a6453a3 | 9811:c92ac5a56f69 |
---|---|
7 # Tested on | 7 # Tested on |
8 # - Fedora 10 | 8 # - Fedora 10 |
9 # - Fedora 11 | 9 # - Fedora 11 |
10 # - Centos 5.3 (with Fedora EPEL repo for asciidoc) | 10 # - Centos 5.3 (with Fedora EPEL repo for asciidoc) |
11 | 11 |
12 HG="`dirname $0`/../hg" | 12 cd "`dirname $0`/.." |
13 PYTHONPATH="`dirname $0`/../mercurial/pure" | 13 HG="$PWD/hg" |
14 PYTHONPATH="$PWD/mercurial/pure" | |
14 export PYTHONPATH | 15 export PYTHONPATH |
15 | 16 |
16 root="`$HG root 2>/dev/null`" | 17 root="`$HG root 2>/dev/null`" |
17 specfile=contrib/mercurial.spec | 18 specfile=contrib/mercurial.spec |
18 | 19 |