Skip to content
Snippets Groups Projects
Commit 428421ffeb06 authored by Julien Cristau's avatar Julien Cristau
Browse files

[debian] don't use sub-shells, and don't ignore errors from loops

Related to #159003
parent 0f967bf3a5de
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@
build: build-stamp
build-stamp:
dh_testdir
(for PYTHON in `pyversions -r`; do \
NO_SETUPTOOLS=1 $${PYTHON} setup.py build ; done )
${MAKE} -C doc html || true
for PYTHON in `pyversions -r`; do \
NO_SETUPTOOLS=1 $${PYTHON} setup.py build || exit; done
$(MAKE) -C doc html || true
touch build-stamp
......@@ -20,4 +20,5 @@
touch build-stamp
clean:
dh_testdir
dh_testroot
......@@ -32,9 +33,9 @@
dh_testroot
dh_clean -k
dh_installdirs
(for PYTHON in `pyversions -r`; do \
NO_SETUPTOOLS=1 $${PYTHON} setup.py install --no-compile --prefix=debian/python-rql/usr/ ; \
done)
for PYTHON in `pyversions -r`; do \
NO_SETUPTOOLS=1 $${PYTHON} setup.py install --no-compile --prefix=debian/python-rql/usr/ || exit; \
done
# remove test directory (installed in in the doc directory)
rm -rf debian/python-rql/usr/lib/python*/site-packages/rql/test
# install tests
......@@ -38,7 +39,7 @@
# remove test directory (installed in in the doc directory)
rm -rf debian/python-rql/usr/lib/python*/site-packages/rql/test
# install tests
(cd test && find . -type f -not \( -name '*.pyc' \) -exec install -D --mode=644 {} ../debian/python-rql/usr/share/doc/python-rql/test/{} \;)
cd test && find . -type f -not \( -name '*.pyc' \) -exec install -D --mode=644 {} ../debian/python-rql/usr/share/doc/python-rql/test/{} \;
# Build architecture-independent files here.
binary-indep:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment