Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
lede-mikrotik
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Johannes Rudolph
lede-mikrotik
Commits
3e87d642
Commit
3e87d642
authored
17 years ago
by
Felix Fietkau
Browse files
Options
Downloads
Patches
Plain Diff
detect whether the find command supports -L or -follow
SVN-Revision: 8002
parent
2809e403
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/host.mk
+6
-1
6 additions, 1 deletion
include/host.mk
include/scan.mk
+4
-1
4 additions, 1 deletion
include/scan.mk
with
10 additions
and
2 deletions
include/host.mk
+
6
−
1
View file @
3e87d642
...
...
@@ -5,7 +5,7 @@
# See /LICENSE for more information.
#
include
$(TMP_DIR)/.host.mk
-
include
$(TMP_DIR)/.host.mk
export
TAR
...
...
@@ -29,6 +29,11 @@ $(TMP_DIR)/.host.mk: $(TOPDIR)/include/host.mk
[
-n
"
$$
TAR"
-a
-x
"
$$
TAR"
]
||
TAR
=
`
which
tar
2>/dev/null
`
;
\
echo
"TAR:=
$$
TAR"
>>
$@
;
\
echo
"BASH:=
$(
shell which bash
)
"
>>
$@
;
\
if
find
-L
/tmp
-maxdepth
0
>
/dev/null 2>/dev/null
;
then
\
echo
'FIND_L=find -L
$$(
1
)
'
>>
$@
;
\
else
\
echo
'FIND_L=find
$$(
1
)
-follow'
>>
$@
;
\
fi
;
\
)
endif
...
...
This diff is collapsed.
Click to expand it.
include/scan.mk
+
4
−
1
View file @
3e87d642
include
$(TOPDIR)/include/verbose.mk
TMP_DIR
:=
$(
TOPDIR
)
/tmp
all
:
tmp/.$(SCAN_TARGET)
include
$(TOPDIR)/include/host.mk
SCAN_TARGET
?=
packageinfo
SCAN_NAME
?=
package
SCAN_DIR
?=
package
...
...
@@ -31,7 +34,7 @@ endef
$(FILELIST)
:
rm
-f
tmp/info/.files-
$(
SCAN_TARGET
)
-
*
find
-follow
$(
SCAN_DIR
)
$(
SCAN_EXTRA
)
-mindepth
1
$(
if
$(
SCAN_DEPTH
)
,-maxdepth
$(
SCAN_DEPTH
))
-name
Makefile | xargs
grep
-HE
'call (Build/DefaultTargets|KernelPackage|Build(Package|Kernel))'
|
sed
-e
's#^
$(
SCAN_DIR
)
/##'
-e
's#/Makefile:.*##'
|
uniq
>
$@
$(
call FIND_L,
$(
SCAN_DIR
)
)
$(
SCAN_EXTRA
)
-mindepth
1
$(
if
$(
SCAN_DEPTH
)
,-maxdepth
$(
SCAN_DEPTH
))
-name
Makefile | xargs
grep
-HE
'call (Build/DefaultTargets|KernelPackage|Build(Package|Kernel))'
|
sed
-e
's#^
$(
SCAN_DIR
)
/##'
-e
's#/Makefile:.*##'
|
uniq
>
$@
tmp/info/.files-$(SCAN_TARGET).mk
:
$(FILELIST)
(
\
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment