Use BUILD_ON_host variable instead of --rebuild-all.

This commit is contained in:
Michael Hoffmann
2006-04-27 09:38:26 +00:00
parent a4e237189e
commit c3f2ba8895
+20 -6
View File
@@ -179,12 +179,22 @@ remote_command()
# $1 = HOST
build_cgal_libs()
{
remote_command ${1} \
"cd ${CGAL_DIR};
${CGAL_DIR}/install_cgal --CGAL_DIR ${CGAL_DIR} --rebuild-all;
rm ${OLD_CGAL_DIR};
ln -s `basename ${CGAL_DIR}` ${OLD_CGAL_DIR}" \
>> ${ACTUAL_LOGFILE} 2>&1
if [ -z "`value_of BUILD_ON_${1}`" ]; then
eval BUILD_ON_${1}="`value_of COMPILERS_${1}`"
fi
if [ "`value_of BUILD_ON_${1}`" = "all" ]; then
remote_command ${1} \
"cd ${CGAL_DIR};
${CGAL_DIR}/install_cgal --CGAL_DIR ${CGAL_DIR} --rebuild-all" \
>> ${ACTUAL_LOGFILE} 2>&1
else
for j in `value_of BUILD_ON_${1}`; do
remote_command ${1} \
"cd ${CGAL_DIR};
${CGAL_DIR}/install_cgal --CGAL_DIR ${CGAL_DIR} --rebuild ${j}" \
>> ${ACTUAL_LOGFILE} 2>&1
done
fi
}
#-----------------------------------------------
@@ -325,6 +335,10 @@ copy_old_stuff()
cd ${CGAL_DIR}
./install_cgal --upgrade ${OLD_CGAL_DIR} >> ${ACTUAL_LOGFILE}
# update symbolic link
rm ${OLD_CGAL_DIR}
ln -s `basename ${CGAL_DIR}` ${OLD_CGAL_DIR}
log_done ${ACTUAL_LOGFILE}
}