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 @@ ...@@ -14,7 +14,7 @@
build: build-stamp build: build-stamp
build-stamp: build-stamp:
dh_testdir dh_testdir
(for PYTHON in `pyversions -r`; do \ for PYTHON in `pyversions -r`; do \
NO_SETUPTOOLS=1 $${PYTHON} setup.py build ; done ) NO_SETUPTOOLS=1 $${PYTHON} setup.py build || exit; done
${MAKE} -C doc html || true $(MAKE) -C doc html || true
touch build-stamp touch build-stamp
...@@ -20,4 +20,5 @@ ...@@ -20,4 +20,5 @@
touch build-stamp touch build-stamp
clean: clean:
dh_testdir dh_testdir
dh_testroot dh_testroot
...@@ -32,9 +33,9 @@ ...@@ -32,9 +33,9 @@
dh_testroot dh_testroot
dh_clean -k dh_clean -k
dh_installdirs dh_installdirs
(for PYTHON in `pyversions -r`; do \ for PYTHON in `pyversions -r`; do \
NO_SETUPTOOLS=1 $${PYTHON} setup.py install --no-compile --prefix=debian/python-rql/usr/ ; \ NO_SETUPTOOLS=1 $${PYTHON} setup.py install --no-compile --prefix=debian/python-rql/usr/ || exit; \
done) done
# remove test directory (installed in in the doc directory) # remove test directory (installed in in the doc directory)
rm -rf debian/python-rql/usr/lib/python*/site-packages/rql/test rm -rf debian/python-rql/usr/lib/python*/site-packages/rql/test
# install tests # install tests
...@@ -38,7 +39,7 @@ ...@@ -38,7 +39,7 @@
# remove test directory (installed in in the doc directory) # remove test directory (installed in in the doc directory)
rm -rf debian/python-rql/usr/lib/python*/site-packages/rql/test rm -rf debian/python-rql/usr/lib/python*/site-packages/rql/test
# install tests # 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. # Build architecture-independent files here.
binary-indep: 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