mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-01 07:27:43 +00:00
pkg-autotools: remove redundant shell conditional
The libtool patching function checks whether patching libtool is wanted before doing the actual patching. This is redundant now, as all callers are now protected by a conditional block. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Arnout Vandecappelle <arnout@mind.be> Cc: Johan Oudinet <johan.oudinet@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
d2ae901036
commit
2fceab73f1
@ -44,19 +44,17 @@ endef
|
|||||||
#
|
#
|
||||||
define PATCH_LIBTOOL
|
define PATCH_LIBTOOL
|
||||||
@$(call MESSAGE,"Patching libtool")
|
@$(call MESSAGE,"Patching libtool")
|
||||||
$(Q)if test "$($(PKG)_LIBTOOL_PATCH)" = "YES" ]; then \
|
$(Q)for i in `find $(1) -name ltmain.sh`; do \
|
||||||
for i in `find $(1) -name ltmain.sh`; do \
|
ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' $$i | \
|
||||||
ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' $$i | \
|
sed -e 's/\([0-9].[0-9]*\).*/\1/' -e 's/\"//'`; \
|
||||||
sed -e 's/\([0-9].[0-9]*\).*/\1/' -e 's/\"//'`; \
|
if test $${ltmain_version} = '1.5'; then \
|
||||||
if test $${ltmain_version} = '1.5'; then \
|
$(APPLY_PATCHES) $${i%/*} support/libtool buildroot-libtool-v1.5.patch; \
|
||||||
$(APPLY_PATCHES) $${i%/*} support/libtool buildroot-libtool-v1.5.patch; \
|
elif test $${ltmain_version} = "2.2"; then\
|
||||||
elif test $${ltmain_version} = "2.2"; then\
|
$(APPLY_PATCHES) $${i%/*} support/libtool buildroot-libtool-v2.2.patch; \
|
||||||
$(APPLY_PATCHES) $${i%/*} support/libtool buildroot-libtool-v2.2.patch; \
|
elif test $${ltmain_version} = "2.4"; then\
|
||||||
elif test $${ltmain_version} = "2.4"; then\
|
$(APPLY_PATCHES) $${i%/*} support/libtool buildroot-libtool-v2.4.patch; \
|
||||||
$(APPLY_PATCHES) $${i%/*} support/libtool buildroot-libtool-v2.4.patch; \
|
fi \
|
||||||
fi \
|
done
|
||||||
done \
|
|
||||||
fi
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
# This function generates the ac_cv_file_<foo> value for a given
|
# This function generates the ac_cv_file_<foo> value for a given
|
||||||
|
Loading…
x
Reference in New Issue
Block a user