mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
Fixup the "older than" (test -ot) tests for older bash
versions when one of the files is missing
This commit is contained in:
parent
0af92f5e6f
commit
fc686e3dfe
@ -51,7 +51,8 @@ $(FINDUTILS_DIR)/$(FINDUTILS_BINARY): $(FINDUTILS_DIR)/.configured
|
|||||||
findutils-target_binary: $(FINDUTILS_DIR)/$(FINDUTILS_BINARY)
|
findutils-target_binary: $(FINDUTILS_DIR)/$(FINDUTILS_BINARY)
|
||||||
@if [ -L $(TARGET_DIR)/$(FINDUTILS_TARGET_BINARY) ] ; then \
|
@if [ -L $(TARGET_DIR)/$(FINDUTILS_TARGET_BINARY) ] ; then \
|
||||||
rm -f $(TARGET_DIR)/$(FINDUTILS_TARGET_BINARY); fi;
|
rm -f $(TARGET_DIR)/$(FINDUTILS_TARGET_BINARY); fi;
|
||||||
@if [ $(TARGET_DIR)/$(FINDUTILS_TARGET_BINARY) -ot $(FINDUTILS_DIR)/$(FINDUTILS_BINARY) ] ; then \
|
@if [ ! -f $(FINDUTILS_DIR)/$(FINDUTILS_BINARY) -o $(TARGET_DIR)/$(FINDUTILS_TARGET_BINARY) \
|
||||||
|
-ot $(FINDUTILS_DIR)/$(FINDUTILS_BINARY) ] ; then \
|
||||||
set -x; \
|
set -x; \
|
||||||
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(FINDUTILS_DIR) install; \
|
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(FINDUTILS_DIR) install; \
|
||||||
$(STRIP) $(TARGET_DIR)/usr/lib/locate/* > /dev/null 2>&1; \
|
$(STRIP) $(TARGET_DIR)/usr/lib/locate/* > /dev/null 2>&1; \
|
||||||
|
@ -51,7 +51,8 @@ $(GNUGREP_DIR)/$(GNUGREP_BINARY): $(GNUGREP_DIR)/.configured
|
|||||||
grep-target_binary: $(GNUGREP_DIR)/$(GNUGREP_BINARY)
|
grep-target_binary: $(GNUGREP_DIR)/$(GNUGREP_BINARY)
|
||||||
@if [ -L $(TARGET_DIR)/$(GNUGREP_TARGET_BINARY) ] ; then \
|
@if [ -L $(TARGET_DIR)/$(GNUGREP_TARGET_BINARY) ] ; then \
|
||||||
rm -f $(TARGET_DIR)/$(GNUGREP_TARGET_BINARY); fi;
|
rm -f $(TARGET_DIR)/$(GNUGREP_TARGET_BINARY); fi;
|
||||||
@if [ $(TARGET_DIR)/$(GNUGREP_TARGET_BINARY) -ot $(GNUGREP_DIR)/$(GNUGREP_BINARY) ] ; then \
|
@if [ ! -f $(GNUGREP_DIR)/$(GNUGREP_BINARY) -o $(TARGET_DIR)/$(GNUGREP_TARGET_BINARY) \
|
||||||
|
-ot $(GNUGREP_DIR)/$(GNUGREP_BINARY) ] ; then \
|
||||||
set -x; \
|
set -x; \
|
||||||
rm -f $(TARGET_DIR)/bin/grep $(TARGET_DIR)/bin/egrep $(TARGET_DIR)/bin/fgrep; \
|
rm -f $(TARGET_DIR)/bin/grep $(TARGET_DIR)/bin/egrep $(TARGET_DIR)/bin/fgrep; \
|
||||||
cp -a $(GNUGREP_DIR)/src/grep $(GNUGREP_DIR)/src/egrep \
|
cp -a $(GNUGREP_DIR)/src/grep $(GNUGREP_DIR)/src/egrep \
|
||||||
|
@ -49,7 +49,8 @@ $(GNUTAR_DIR)/$(GNUTAR_BINARY): $(GNUTAR_DIR)/.configured
|
|||||||
tar-target_binary: $(GNUTAR_DIR)/$(GNUTAR_BINARY)
|
tar-target_binary: $(GNUTAR_DIR)/$(GNUTAR_BINARY)
|
||||||
@if [ -L $(TARGET_DIR)/$(GNUTAR_TARGET_BINARY) ] ; then \
|
@if [ -L $(TARGET_DIR)/$(GNUTAR_TARGET_BINARY) ] ; then \
|
||||||
rm -f $(TARGET_DIR)/$(GNUTAR_TARGET_BINARY); fi;
|
rm -f $(TARGET_DIR)/$(GNUTAR_TARGET_BINARY); fi;
|
||||||
@if [ $(TARGET_DIR)/$(GNUTAR_TARGET_BINARY) -ot $(GNUTAR_DIR)/$(GNUTAR_BINARY) ] ; then \
|
@if [ ! -f $(GNUTAR_DIR)/$(GNUTAR_BINARY) -o $(TARGET_DIR)/$(GNUTAR_TARGET_BINARY) \
|
||||||
|
-ot $(GNUTAR_DIR)/$(GNUTAR_BINARY) ] ; then \
|
||||||
set -x; \
|
set -x; \
|
||||||
rm -f $(TARGET_DIR)/$(GNUTAR_TARGET_BINARY); \
|
rm -f $(TARGET_DIR)/$(GNUTAR_TARGET_BINARY); \
|
||||||
cp -a $(GNUTAR_DIR)/$(GNUTAR_BINARY) $(TARGET_DIR)/$(GNUTAR_TARGET_BINARY); fi ;
|
cp -a $(GNUTAR_DIR)/$(GNUTAR_BINARY) $(TARGET_DIR)/$(GNUTAR_TARGET_BINARY); fi ;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user