mirror of
https://github.com/mnauw/git-remote-hg.git
synced 2025-11-02 01:25:49 +01:00
Fail the build when Python with Mercurial is not available
This commit is contained in:
committed by
Mark Nauwelaerts
parent
a8cd6a92b3
commit
4d38bff053
3
Makefile
3
Makefile
@@ -14,6 +14,9 @@ build:
|
|||||||
PYTHON=python2 ; \
|
PYTHON=python2 ; \
|
||||||
elif python -c 'import mercurial' 2> /dev/null ; then \
|
elif python -c 'import mercurial' 2> /dev/null ; then \
|
||||||
PYTHON=python ; \
|
PYTHON=python ; \
|
||||||
|
else ; \
|
||||||
|
echo 'Python with Mercurial not available' >&2 ; \
|
||||||
|
exit 1 ; \
|
||||||
fi ; \
|
fi ; \
|
||||||
mkdir -p bin ; \
|
mkdir -p bin ; \
|
||||||
for s in git-remote-hg git-hg-helper ; do \
|
for s in git-remote-hg git-hg-helper ; do \
|
||||||
|
|||||||
Reference in New Issue
Block a user