* commit 'a0af56f6989d250f290257967f64f640531472f5': Sort all files found via $(shell find)
This commit is contained in:
@@ -187,10 +187,10 @@ endef
|
|||||||
###########################################################
|
###########################################################
|
||||||
|
|
||||||
define all-java-files-under
|
define all-java-files-under
|
||||||
$(patsubst ./%,%, \
|
$(sort $(patsubst ./%,%, \
|
||||||
$(shell cd $(LOCAL_PATH) ; \
|
$(shell cd $(LOCAL_PATH) ; \
|
||||||
find -L $(1) -name "*.java" -and -not -name ".*") \
|
find -L $(1) -name "*.java" -and -not -name ".*") \
|
||||||
)
|
))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
###########################################################
|
###########################################################
|
||||||
@@ -209,10 +209,10 @@ endef
|
|||||||
###########################################################
|
###########################################################
|
||||||
|
|
||||||
define all-c-files-under
|
define all-c-files-under
|
||||||
$(patsubst ./%,%, \
|
$(sort $(patsubst ./%,%, \
|
||||||
$(shell cd $(LOCAL_PATH) ; \
|
$(shell cd $(LOCAL_PATH) ; \
|
||||||
find -L $(1) -name "*.c" -and -not -name ".*") \
|
find -L $(1) -name "*.c" -and -not -name ".*") \
|
||||||
)
|
))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
###########################################################
|
###########################################################
|
||||||
@@ -231,10 +231,10 @@ endef
|
|||||||
###########################################################
|
###########################################################
|
||||||
|
|
||||||
define all-Iaidl-files-under
|
define all-Iaidl-files-under
|
||||||
$(patsubst ./%,%, \
|
$(sort $(patsubst ./%,%, \
|
||||||
$(shell cd $(LOCAL_PATH) ; \
|
$(shell cd $(LOCAL_PATH) ; \
|
||||||
find -L $(1) -name "I*.aidl" -and -not -name ".*") \
|
find -L $(1) -name "I*.aidl" -and -not -name ".*") \
|
||||||
)
|
))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
###########################################################
|
###########################################################
|
||||||
@@ -252,10 +252,10 @@ endef
|
|||||||
###########################################################
|
###########################################################
|
||||||
|
|
||||||
define all-logtags-files-under
|
define all-logtags-files-under
|
||||||
$(patsubst ./%,%, \
|
$(sort $(patsubst ./%,%, \
|
||||||
$(shell cd $(LOCAL_PATH) ; \
|
$(shell cd $(LOCAL_PATH) ; \
|
||||||
find -L $(1) -name "*.logtags" -and -not -name ".*") \
|
find -L $(1) -name "*.logtags" -and -not -name ".*") \
|
||||||
)
|
))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
###########################################################
|
###########################################################
|
||||||
@@ -265,10 +265,10 @@ endef
|
|||||||
###########################################################
|
###########################################################
|
||||||
|
|
||||||
define all-proto-files-under
|
define all-proto-files-under
|
||||||
$(patsubst ./%,%, \
|
$(sort $(patsubst ./%,%, \
|
||||||
$(shell cd $(LOCAL_PATH) ; \
|
$(shell cd $(LOCAL_PATH) ; \
|
||||||
find -L $(1) -name "*.proto" -and -not -name ".*") \
|
find -L $(1) -name "*.proto" -and -not -name ".*") \
|
||||||
)
|
))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
###########################################################
|
###########################################################
|
||||||
@@ -278,10 +278,10 @@ endef
|
|||||||
###########################################################
|
###########################################################
|
||||||
|
|
||||||
define all-renderscript-files-under
|
define all-renderscript-files-under
|
||||||
$(patsubst ./%,%, \
|
$(sort $(patsubst ./%,%, \
|
||||||
$(shell cd $(LOCAL_PATH) ; \
|
$(shell cd $(LOCAL_PATH) ; \
|
||||||
find -L $(1) \( -name "*.rs" -or -name "*.fs" \) -and -not -name ".*") \
|
find -L $(1) \( -name "*.rs" -or -name "*.fs" \) -and -not -name ".*") \
|
||||||
)
|
))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
###########################################################
|
###########################################################
|
||||||
@@ -291,10 +291,10 @@ endef
|
|||||||
###########################################################
|
###########################################################
|
||||||
|
|
||||||
define all-S-files-under
|
define all-S-files-under
|
||||||
$(patsubst ./%,%, \
|
$(sort $(patsubst ./%,%, \
|
||||||
$(shell cd $(LOCAL_PATH) ; \
|
$(shell cd $(LOCAL_PATH) ; \
|
||||||
find -L $(1) -name "*.S" -and -not -name ".*") \
|
find -L $(1) -name "*.S" -and -not -name ".*") \
|
||||||
)
|
))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
###########################################################
|
###########################################################
|
||||||
@@ -304,10 +304,10 @@ endef
|
|||||||
###########################################################
|
###########################################################
|
||||||
|
|
||||||
define all-html-files-under
|
define all-html-files-under
|
||||||
$(patsubst ./%,%, \
|
$(sort $(patsubst ./%,%, \
|
||||||
$(shell cd $(LOCAL_PATH) ; \
|
$(shell cd $(LOCAL_PATH) ; \
|
||||||
find -L $(1) -name "*.html" -and -not -name ".*") \
|
find -L $(1) -name "*.html" -and -not -name ".*") \
|
||||||
)
|
))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
###########################################################
|
###########################################################
|
||||||
@@ -325,7 +325,7 @@ endef
|
|||||||
###########################################################
|
###########################################################
|
||||||
|
|
||||||
define find-subdir-files
|
define find-subdir-files
|
||||||
$(patsubst ./%,%,$(shell cd $(LOCAL_PATH) ; find -L $(1)))
|
$(sort $(patsubst ./%,%,$(shell cd $(LOCAL_PATH) ; find -L $(1))))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
###########################################################
|
###########################################################
|
||||||
@@ -337,8 +337,8 @@ endef
|
|||||||
###########################################################
|
###########################################################
|
||||||
|
|
||||||
define find-subdir-subdir-files
|
define find-subdir-subdir-files
|
||||||
$(filter-out $(patsubst %,$(1)/%,$(3)),$(patsubst ./%,%,$(shell cd \
|
$(sort $(filter-out $(patsubst %,$(1)/%,$(3)),$(patsubst ./%,%,$(shell cd \
|
||||||
$(LOCAL_PATH) ; find -L $(1) -maxdepth 1 -name $(2))))
|
$(LOCAL_PATH) ; find -L $(1) -maxdepth 1 -name $(2)))))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
###########################################################
|
###########################################################
|
||||||
@@ -347,10 +347,10 @@ endef
|
|||||||
###########################################################
|
###########################################################
|
||||||
|
|
||||||
define find-subdir-assets
|
define find-subdir-assets
|
||||||
$(if $(1),$(patsubst ./%,%, \
|
$(sort $(if $(1),$(patsubst ./%,%, \
|
||||||
$(shell if [ -d $(1) ] ; then cd $(1) ; find ./ -not -name '.*' -and -type f -and -not -type l ; fi)), \
|
$(shell if [ -d $(1) ] ; then cd $(1) ; find ./ -not -name '.*' -and -type f -and -not -type l ; fi)), \
|
||||||
$(warning Empty argument supplied to find-subdir-assets) \
|
$(warning Empty argument supplied to find-subdir-assets) \
|
||||||
)
|
))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
###########################################################
|
###########################################################
|
||||||
@@ -375,10 +375,10 @@ endef
|
|||||||
###########################################################
|
###########################################################
|
||||||
|
|
||||||
define find-files-in-subdirs
|
define find-files-in-subdirs
|
||||||
$(patsubst ./%,%, \
|
$(sort $(patsubst ./%,%, \
|
||||||
$(shell cd $(1) ; \
|
$(shell cd $(1) ; \
|
||||||
find -L $(3) -name $(2) -and -not -name ".*") \
|
find -L $(3) -name $(2) -and -not -name ".*") \
|
||||||
)
|
))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
###########################################################
|
###########################################################
|
||||||
|
Reference in New Issue
Block a user