Use \n.
authorjkratoch <>
Sat, 2 Oct 2010 16:01:29 +0000 (16:01 +0000)
committerjkratoch <>
Sat, 2 Oct 2010 16:01:29 +0000 (16:01 +0000)
bin/gcc-command-line

index 5e756b9..689eb84 100755 (executable)
@@ -1,4 +1,4 @@
 #! /bin/sh
 for i in "$@";do
 #! /bin/sh
 for i in "$@";do
-       objcopy -O binary -j .GCC.command.line --set-section-flags .GCC.command.line=A --change-section-address .GCC.command.line=0 "$i" /proc/self/fd/1|tr '\0' ' '|sed 's/ $//';echo
+       objcopy -O binary -j .GCC.command.line --set-section-flags .GCC.command.line=A --change-section-address .GCC.command.line=0 "$i" /proc/self/fd/1|tr '\0' '\n'
 done
 done