mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 14:16:31 +00:00
only generate the symlink to host sed once as reported by petev in bug 628
This commit is contained in:
parent
0e1be2d0f3
commit
aae52404c7
@ -62,11 +62,18 @@ build-sed-host-binary: $(SED_DIR1)/$(SED_BINARY)
|
|||||||
$(HOST_SED_DIR)/usr/man $(HOST_SED_DIR)/usr/share/doc; fi
|
$(HOST_SED_DIR)/usr/man $(HOST_SED_DIR)/usr/share/doc; fi
|
||||||
|
|
||||||
use-sed-host-binary:
|
use-sed-host-binary:
|
||||||
@if [ -x /usr/bin/sed ]; then SED="/usr/bin/sed"; else \
|
@if [ -x /usr/bin/sed ] ; then \
|
||||||
if [ -x /bin/sed ]; then SED="/bin/sed"; fi; fi; \
|
SED="/usr/bin/sed" ; \
|
||||||
mkdir -p $(HOST_SED_DIR)/bin; \
|
else \
|
||||||
rm -f $(HOST_SED_DIR)/$(SED_TARGET_BINARY); \
|
if [ -x /bin/sed ] ; then \
|
||||||
ln -s $$SED $(HOST_SED_DIR)/$(SED_TARGET_BINARY)
|
SED="/bin/sed" ; \
|
||||||
|
fi \
|
||||||
|
fi ; \
|
||||||
|
if [ ! -e "$(HOST_SED_DIR)/$(SED_TARGET_BINARY)" ] ; then \
|
||||||
|
mkdir -p "$(HOST_SED_DIR)/bin"; \
|
||||||
|
rm -f "$(HOST_SED_DIR)/$(SED_TARGET_BINARY)"; \
|
||||||
|
ln -s "$$SED" "$(HOST_SED_DIR)/$(SED_TARGET_BINARY)"; \
|
||||||
|
fi
|
||||||
|
|
||||||
host-sed: $(HOST_SED_TARGET)
|
host-sed: $(HOST_SED_TARGET)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user