mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 01:01:27 +00:00
Debian: Add support for older versions on which dpkg-buildpackage neither supports -ui nor -jauto
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7369 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
16
Makefile
16
Makefile
@@ -510,10 +510,20 @@ dpkg: ../scst_$(VERSION).orig.tar.xz
|
||||
../scst_$(VERSION)-$(DEBIAN_REVISION)_amd64.changes \
|
||||
) && \
|
||||
rm -f "$${output_files[@]}" && \
|
||||
if false; then \
|
||||
dpkg-buildpackage -uc -us -ui -jauto; \
|
||||
buildopts=(-uc -us) && \
|
||||
if dpkg-buildpackage --help 2>&1 | grep -- '-ui'; then \
|
||||
buildopts+=(-ui); \
|
||||
fi && \
|
||||
if dpkg-buildpackage --help 2>&1 | \
|
||||
grep -q -- '--jobs\[=<number>|auto\]'; then \
|
||||
buildopts+=(-jauto); \
|
||||
else \
|
||||
debuild -uc -us -ui -jauto --lintian-opts --profile debian; \
|
||||
buildopts+=(-j4); \
|
||||
fi && \
|
||||
if false; then \
|
||||
dpkg-buildpackage "$${buildopts[@]}"; \
|
||||
else \
|
||||
debuild "$${buildopts[@]}" --lintian-opts --profile debian; \
|
||||
fi && \
|
||||
mkdir -p dpkg && \
|
||||
for f in "$${output_files[@]}" ../scst_$(VERSION).orig.tar.xz; do\
|
||||
|
||||
Reference in New Issue
Block a user