Skip to content

Commit

Permalink
install multiple projects in a row
Browse files Browse the repository at this point in the history
  • Loading branch information
h-dh committed Dec 8, 2015
1 parent 0dec14a commit 56cc921
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -582,12 +582,14 @@ log()

makeProject()
{
local cxxFlags="${CXXFLAGS}"

for PROJECT in ${projects[*]} ; do
export PROJECT=$PROJECT

if [ ${PROJECT} = CF ] ; then
local cfc=CF-checker
CXXFLAGS="${CXXFLAGS} -D CF_MACRO"
CXXFLAGS="${cxxFlags} -D CF_MACRO"
# export QA_PRJ_HEADER=qa_NONE.h
# export QA_PRJ_SRC=QA_NONE.cpp

Expand All @@ -598,10 +600,11 @@ makeProject()
else
export QA_PRJ_HEADER=qa_${PROJECT}.h
export QA_PRJ_SRC=QA_${PROJECT}.cpp
CXXFLAGS="${CXXFLAGS} -D ${PROJECT}"
CXXFLAGS="${cxxFlags} -D ${PROJECT}"
unset cfc

if [ $(ps -ef | grep -c qa-DKRZ) -gt 1 ] ; then
##protect running sessions, but not really thread save
# protect running sessions, but not really thread save
export PRJ_NAME=qqA-${PROJECT}
test -f $BIN/qA-${PROJECT}.x && \
cp -a $BIN/qA-${PROJECT}.x $BIN/${PRJ_NAME}.x
Expand All @@ -612,7 +615,7 @@ makeProject()
fi

if ! make ${always} -q -C $BIN -f ${QA_PATH}/$MAKEFILE ${cfc} ; then
# not up-to-date
# not upto-date
if make ${always} ${mk_D} -C $BIN -f ${QA_PATH}/$MAKEFILE ${cfc} ; then
test ${PROJECT} != CF && log "make qa-${PROJECT}.x" DONE
else
Expand Down Expand Up @@ -962,6 +965,6 @@ fi
getRevNum REVISION
export REVISION

makeProject $prj
makeProject

exit 0

0 comments on commit 56cc921

Please sign in to comment.