diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-04 16:36:52 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-04 16:36:52 -0800 |
commit | 25c862cc9ea9b312c25a9f577f91b973131f1261 (patch) | |
tree | 8e8f56531144370ced50fa98db2973f4e93e38b0 /scripts/basic/fixdep.c | |
parent | 52347f4e810ba323d02cd2c26b5d738f4a2c3d5e (diff) | |
parent | 8ded4ac018ea706bf7ee926601a27184665c9c28 (diff) | |
download | op-kernel-dev-25c862cc9ea9b312c25a9f577f91b973131f1261.zip op-kernel-dev-25c862cc9ea9b312c25a9f577f91b973131f1261.tar.gz |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild
Diffstat (limited to 'scripts/basic/fixdep.c')
-rw-r--r-- | scripts/basic/fixdep.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/scripts/basic/fixdep.c b/scripts/basic/fixdep.c index 0b61bea..679124b 100644 --- a/scripts/basic/fixdep.c +++ b/scripts/basic/fixdep.c @@ -130,9 +130,22 @@ void usage(void) exit(1); } +/* + * Print out the commandline prefixed with cmd_<target filename> := + * If commandline contains '#' escape with '\' so make to not see + * the '#' as a start-of-comment symbol + **/ void print_cmdline(void) { - printf("cmd_%s := %s\n\n", target, cmdline); + char *p = cmdline; + + printf("cmd_%s := ", target); + for (; *p; p++) { + if (*p == '#') + printf("\\"); + printf("%c", *p); + } + printf("\n\n"); } char * str_config = NULL; |