Don't print double newline for --src-root and --obj-root as it tends to
authorReid Spencer <rspencer@reidspencer.com>
Fri, 11 Aug 2006 21:50:24 +0000 (21:50 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Fri, 11 Aug 2006 21:50:24 +0000 (21:50 +0000)
confuse shells that might use this output.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29629 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-config/llvm-config.in.in

index a8c0fa3ed17c3b47951c1533e51d861a8f3f3a9a..51b79ec9262106aa8f2f4a3a53c173cbfd3dc808 100644 (file)
@@ -124,9 +124,9 @@ foreach my $arg (@ARGV) {
         } elsif ($arg eq "--build-mode") {
             $has_opt = 1; print "$LLVM_BUILDMODE\n";
         } elsif ($arg eq "--obj-root") {
-            $has_opt = 1; print `cd $LLVM_OBJ_ROOT/; pwd` . "\n";
+            $has_opt = 1; print `cd $LLVM_OBJ_ROOT/; pwd`;
         } elsif ($arg eq "--src-root") {
-            $has_opt = 1; print `cd $LLVM_SRC_ROOT/; pwd` . "\n";
+            $has_opt = 1; print `cd $LLVM_SRC_ROOT/; pwd`;
         } else {
             usage();
         }