llvm: Avoid versioning configuration files directly.

This commit is contained in:
Cristiano Giuffrida 2014-06-13 20:21:22 +02:00 committed by Lionel Sambuc
parent 2d00147b3f
commit 0e560ca0c8
4 changed files with 4 additions and 2 deletions

View file

@ -99,6 +99,7 @@ function check_args()
check_current_dir
# set up the bridge to llvm-apps repository and initialize
[ -f ${MINIX_LLVM_DIR}/minix.inc ] || cp ${MINIX_LLVM_DIR}/minix.inc.default ${MINIX_LLVM_DIR}/minix.inc
. ${MINIX_LLVM_DIR}/minix.inc
. ${ROOT}/apps/scripts/include/configure.llvm.inc

View file

@ -63,6 +63,7 @@ echo "LLVM root directory is set to :"
echo " ${ROOT}"
# Persist the LLVM ROOT path information
[ -f ${MINIX_LLVM_DIR}/minix.inc ] || cp ${MINIX_LLVM_DIR}/minix.inc.default ${MINIX_LLVM_DIR}/minix.inc
ROOT_1=`echo ${ROOT} | sed "s/\\\//\\\\\\\\\//g"`
sed -i "s/ROOT=.*$/ROOT=\"${ROOT_1}\"/g" ${MINIX_LLVM_DIR}/minix.inc

View file

@ -93,4 +93,4 @@ TOOLDIR=${DESTDIR}/tooldir.`uname -s`-`uname -r`-`uname -m`/bin
# repository
#
##############################################################################
ROOT="/home/koustubha/systems_thesis.lnk/repositories/llvm-apps"
ROOT="/nonexistent"

View file

@ -69,7 +69,6 @@ function find_static_libs()
echo "${stat_libs_llvmapps} ${stat_libs_minix}"
}
#Make sure we are running from the right directory
check_current_dir
@ -80,6 +79,7 @@ if [ "$1" == "--help" ] || [ "$1" == "-h" ]; then
fi
# set up the bridge to llvm-apps repository and initialize
[ -f ${MINIX_LLVM_DIR}/minix.inc ] || cp ${MINIX_LLVM_DIR}/minix.inc.default ${MINIX_LLVM_DIR}/minix.inc
. ${MINIX_LLVM_DIR}/minix.inc
. ${ROOT}/apps/scripts/include/configure.llvm.inc