09-09-2014, 02:38 AM
Sorry been busy with IRL.
I tried the " 2>&1 1>" for outupt, but script still takes cmake/gcc errors and outputs to terminal instead of logging to a file.
Ex:
/* Terminal Output */
[ 57%] Building CXX object CMakeFiles/native.dir/native/ext/jpge/jpge.cpp.o
Linking CXX static library lib/libnative.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: lib/libnative.a(fastlist_test.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: lib/libnative.a(gl3stub.c.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: lib/libnative.a(fastlist_test.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: lib/libnative.a(gl3stub.c.o) has no symbols
[ 57%] Built target native
/* Log Output */
[ 57%] Building CXX object CMakeFiles/native.dir/native/ext/jpge/jpge.cpp.o
Linking CXX static library lib/libnative.a
[ 57%] Built target native
These errors are basically irrelevant as far as I can tell (probably just from porting), but I'm sure not everyone has a Mac to test this out. It builds fine and runs okay. So as far as I can tell bash is taking stderr from the script but not from gcc and bypassing the actual error output.
Honestly, Git's great for programming and multiple people, but for logs or router configs WebSVN is pretty simple and still can trace back to see diffs.
I tried the " 2>&1 1>" for outupt, but script still takes cmake/gcc errors and outputs to terminal instead of logging to a file.
Ex:
/* Terminal Output */
[ 57%] Building CXX object CMakeFiles/native.dir/native/ext/jpge/jpge.cpp.o
Linking CXX static library lib/libnative.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: lib/libnative.a(fastlist_test.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: lib/libnative.a(gl3stub.c.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: lib/libnative.a(fastlist_test.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: lib/libnative.a(gl3stub.c.o) has no symbols
[ 57%] Built target native
/* Log Output */
[ 57%] Building CXX object CMakeFiles/native.dir/native/ext/jpge/jpge.cpp.o
Linking CXX static library lib/libnative.a
[ 57%] Built target native
These errors are basically irrelevant as far as I can tell (probably just from porting), but I'm sure not everyone has a Mac to test this out. It builds fine and runs okay. So as far as I can tell bash is taking stderr from the script but not from gcc and bypassing the actual error output.
Honestly, Git's great for programming and multiple people, but for logs or router configs WebSVN is pretty simple and still can trace back to see diffs.

