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
c49f6667
Commit
c49f6667
authored
13 years ago
by
Felix Fietkau
Browse files
Options
Downloads
Patches
Plain Diff
tools: fix GNU stat detection to prevent it from picking up other things named "gstat" (see #4571)
SVN-Revision: 31059
parent
265d0b37
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/Makefile
+10
-1
10 additions, 1 deletion
tools/Makefile
with
10 additions
and
1 deletion
tools/Makefile
+
10
−
1
View file @
c49f6667
...
@@ -101,10 +101,19 @@ $(STAGING_DIR_HOST)/bin/$(1): $(STAGING_DIR)/.prepared
...
@@ -101,10 +101,19 @@ $(STAGING_DIR_HOST)/bin/$(1): $(STAGING_DIR)/.prepared
endef
endef
endif
endif
$(STAGING_DIR_HOST)/bin/stat
:
$(STAGING_DIR)/.prepared
@
if
stat
--version
>
/dev/null 2>&1
;
then
\
ln
-s
`
which
stat
`
$@
;
\
elif
gstat
--version
>
/dev/null 2>&1
;
then
\
ln
-s
`
which gstat
`
$@
;
\
else
\
echo
"GNU stat not found"
;
\
false
;
\
fi
$(
eval
$(
call PrepareCommand,find,gfind find
))
$(
eval
$(
call PrepareCommand,find,gfind find
))
$(
eval
$(
call PrepareCommand,md5sum,md5sum
$(
SCRIPT_DIR
)
/md5sum
))
$(
eval
$(
call PrepareCommand,md5sum,md5sum
$(
SCRIPT_DIR
)
/md5sum
))
$(
eval
$(
call PrepareCommand,cp,gcp
cp
))
$(
eval
$(
call PrepareCommand,cp,gcp
cp
))
$(
eval
$(
call PrepareCommand,stat,gstat
stat
))
$(
eval
$(
call PrepareCommand,seq,gseq
seq
))
$(
eval
$(
call PrepareCommand,seq,gseq
seq
))
$(curdir)/
cmddeps
=
$(
patsubst %,
$(
STAGING_DIR_HOST
)
/bin/%,find
md5sum cp stat seq
)
$(curdir)/
cmddeps
=
$(
patsubst %,
$(
STAGING_DIR_HOST
)
/bin/%,find
md5sum cp stat seq
)
...
...
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