generate-cmdlist.sh should be either executable or run as parameter of "."
PATCH 1/1 generate-cmdlist.sh should be either executable or run as parameter of "."
I believe this is just a small glitch. generate-cmdlist.sh by default should be made as executable. But since one might forgot to do it, we could simply call it as an argument "." or "source" or even "sh -c". I pick "."
Tested in 2.6.31
tools/perf/Makefile renamed from tools/perf/Makefile.bak +1 -1
@@ -682,7 +682,7 @@ common-cmds.h: util/generate-cmdlist.sh command-list.txt common-cmds.h: $(wildcard Documentation/perf-*.txt) - $(QUIET_GEN)util/generate-cmdlist.sh > $@+ && mv $@+ $@ + $(QUIET_GEN). util/generate-cmdlist.sh > $@+ && mv $@+ $@ $(patsubst %.sh,%,$(SCRIPT_SH)) : % : %.sh $(QUIET_GEN)$(RM) $@ $@+ && \
Quoted 8 lines · Mulyadi Santosa
I believe this is just a small glitch.
generate-cmdlist.shby default should be made as executable. But since one might forgot to do it, we could simply call it as an argument "." or "source" or even "sh -c". I pick "."Tested in 2.6.31
Signed-off-by Mulyadi Santosa <[email protected]>
hm, generate-cmdlist.sh is executable in the upstream kernel repo. It apparently isnt executable on your box - why?
Ingo
Quoted 8 lines · Ingo Molnar
Quoted 5 lines · Mulyadi Santosa
I believe this is just a small glitch.
generate-cmdlist.shby default should be made as executable. But since one might forgot to do it, we could simply call it as an argument "." or "source" or even "sh -c". I pick "."
Quoted 6 lines
Quoted 3 lines
Tested in 2.6.31
Signed-off-by Mulyadi Santosa <[email protected]>hm,
generate-cmdlist.shis executable in the upstream kernel repo. It apparently isnt executable on your box - why?
Whatever - we should try to avoid relying on executable bit being set. umask can prevent this is tree is checkout as one user and build as another user.
Sam
Quoted 11 lines · Sam Ravnborg
Quoted 10 lines · Ingo Molnar
Quoted 7 lines · Mulyadi Santosa
I believe this is just a small glitch.
generate-cmdlist.shby default should be made as executable. But since one might forgot to do it, we could simply call it as an argument "." or "source" or even "sh -c". I pick "."Tested in 2.6.31
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
Signed-off-by Mulyadi Santosa <[email protected]>hm,
generate-cmdlist.shis executable in the upstream kernel repo. It apparently isnt executable on your box - why?Whatever - we should try to avoid relying on executable bit being set. umask can prevent this is tree is checkout as one user and build as another user.
Fair enough - i'll queue the patch up.
Ingo
[tip:perf/urgent] perf tools: Run generate-cmdlist.sh properly
In reply to Mulyadi SantosaCommit-ID: 1ad0560e8cdb6d5b381220dc2da187691b5ce124 Gitweb: http://git.kernel.org/tip/1ad0560e8cdb6d5b381220dc2da187691b5ce124 Author: Mulyadi Santosa <[email protected]> AuthorDate: Sat, 26 Sep 2009 02:01:41 +0700 Committer: Ingo Molnar <[email protected]> CommitDate: Thu, 1 Oct 2009 10:12:03 +0200
perf tools: Run generate-cmdlist.sh properly
Right now generate-cmdlist.sh is not executable, so we should call it as an argument ".".
This fixes cases where due to different umask defaults the generate-cmdlist.sh script is not executable in a kernel tree checkout.
LKML-Reference: <[email protected]>
--- tools/perf/Makefile | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
tools/perf/Makefile +1 -1
@@ -728,7 +728,7 @@ $(BUILT_INS): perf$X common-cmds.h: util/generate-cmdlist.sh command-list.txt common-cmds.h: $(wildcard Documentation/perf-*.txt) - $(QUIET_GEN)util/generate-cmdlist.sh > $@+ && mv $@+ $@ + $(QUIET_GEN). util/generate-cmdlist.sh > $@+ && mv $@+ $@ $(patsubst %.sh,%,$(SCRIPT_SH)) : % : %.sh $(QUIET_GEN)$(RM) $@ $@+ && \