Skip to content
Snippets Groups Projects
Commit 66c290c9 authored by ESCOBAR MUNOZ Juan's avatar ESCOBAR MUNOZ Juan
Browse files

Juan 29/09/2023:configure, move all public lib to WORKDIR if asked

parent a3efb6a4
No related branches found
No related tags found
No related merge requests found
...@@ -617,15 +617,18 @@ if [ "x${MVWORK}" == "xYES" ] ; then ...@@ -617,15 +617,18 @@ if [ "x${MVWORK}" == "xYES" ] ; then
echo ' ---> initialisez la et relance "./configure"' echo ' ---> initialisez la et relance "./configure"'
exit 1 exit 1
fi fi
if [ -d $WORKDIR ] && [ ${LOCAL} == ${LOCAL##/work} ] ; then if [ -d ${WORKDIR} ] && [ ${LOCAL} == ${LOCAL##/work} ] ; then
# if we are not allready in the workdir --> move stuff # if we are not allready in the workdir --> move stuff
WORK=$WORKDIR/${RACINE}_WORKDIR WORK=$WORKDIR/${RACINE}_WORKDIR
mkdir -p ${WORK} mkdir -p ${WORK}
for dir in MY_RUN exe pub for dir in MY_RUN exe pub src/LIB
do do
[ -d $LOCAL/${dir} ] && [ ! -L $LOCAL/${dir} ] \ if [ -d ${LOCAL}/${dir} ] && [ ! -L ${LOCAL}/${dir} ] ; then
&& mv $LOCAL/${dir} ${WORK}/. \ DIR=$( dirname ${WORK}/${dir} )
&& ln -s ${WORK}/${dir} $LOCAL/. mkdir -p ${DIR}
mv ${LOCAL}/${dir} ${DIR}/.
ln -fs ${WORK}/${dir} ${LOCAL}/${dir}
fi
done done
fi fi
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment