Do not copy ecj.jar when it's not required.
/trunk/scripts/build/cc/gcc.sh | 4 3 1 0 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
1.1 --- a/scripts/build/cc/gcc.sh Sun Mar 15 20:06:40 2009 +0000
1.2 +++ b/scripts/build/cc/gcc.sh Sun Mar 15 20:08:06 2009 +0000
1.3 @@ -28,7 +28,9 @@
1.4 CT_Extract "gcc-${CT_CC_VERSION}"
1.5 CT_Patch "gcc-${CT_CC_VERSION}"
1.6 # Copy ecj-latest.jar to ecj.jar at the top of the GCC source tree
1.7 - if [ "${CT_CC_LANG_JAVA_USE_ECJ}" = "y" ]; then
1.8 + if [ "${CT_CC_LANG_JAVA_USE_ECJ}" = "y" \
1.9 + -a ! -f "${CT_SRC_DIR}/gcc-${CT_CC_VERSION}/ecj.jar" \
1.10 + ]; then
1.11 CT_DoExecLog ALL cp -v "${CT_TARBALLS_DIR}/ecj-latest.jar" "${CT_SRC_DIR}/gcc-${CT_CC_VERSION}/ecj.jar"
1.12 fi
1.13 }