mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 12:04:39 +08:00
debian packaging: avoid autoreconf on old platforms
The autoreconf step requires a newer version of automake than is available on older versions of Debian and Ubuntu; avoid the autoreconf step on these platforms for now.
This commit is contained in:
parent
eaa3741336
commit
15921d37c4
10
debian/rules
vendored
10
debian/rules
vendored
|
@ -8,9 +8,19 @@ export DH_VERBOSE=1
|
||||||
# can be removed once on dh compat level 9
|
# can be removed once on dh compat level 9
|
||||||
DPKG_EXPORT_BUILDFLAGS = 1
|
DPKG_EXPORT_BUILDFLAGS = 1
|
||||||
-include /usr/share/dpkg/buildflags.mk
|
-include /usr/share/dpkg/buildflags.mk
|
||||||
|
DEB_DISTRIBUTION = $(shell dpkg-parsechangelog | sed -n -e 's/^Distribution: //p')
|
||||||
|
|
||||||
|
# Ubuntu 12.04 (precise) and Debian 7 have versions of Automake too old
|
||||||
|
# to support autoreconf; just use the tarball-shipped versions
|
||||||
|
# Can be removed once we stop shipping on these versions
|
||||||
%:
|
%:
|
||||||
|
ifeq ($(DEB_DISTRIBUTION), precise)
|
||||||
|
dh $@ --with autotools-dev
|
||||||
|
else ifeq ($(findstring 7, $(shell cat /etc/debian_version)), 7)
|
||||||
|
dh $@ --with autotools-dev
|
||||||
|
else
|
||||||
dh $@ --with autotools-dev,autoreconf
|
dh $@ --with autotools-dev,autoreconf
|
||||||
|
endif
|
||||||
|
|
||||||
override_dh_installdocs:
|
override_dh_installdocs:
|
||||||
dh_installdocs --link-doc=fish
|
dh_installdocs --link-doc=fish
|
||||||
|
|
Loading…
Reference in New Issue
Block a user