Skip to content

Commit

Permalink
Merge pull request #84 from rlcee/pre_230728
Browse files Browse the repository at this point in the history
two new features for KinKal
  • Loading branch information
rlcee authored Jul 29, 2023
2 parents 01b22a6 + 45ba337 commit acfe132
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
22 changes: 22 additions & 0 deletions bin/museBuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,28 @@ do
mkdir -p $MUSE_BUILD_DIR/$REPO
done

#
# if the user set some scripts to run before building
#
if [ "$MUSE_PRESOURCE" ]; then
echo "Muse presource: $MUSE_PRESOURCE"
source $MUSE_PRESOURCE
RC=$?
if [ $RC -ne 0 ]; then
echo "ERROR - MUSE_PRESOURCE returns $RC"
exit $RC
fi
fi
if [ "$MUSE_PREBUILD" ]; then
echo "Muse prebuild: $MUSE_PREBUILD"
$MUSE_PREBUILD
RC=$?
if [ $RC -ne 0 ]; then
echo "ERROR - MUSE_PREBUILD returns $RC"
exit $RC
fi
fi

#
# now run the local build
#
Expand Down
10 changes: 8 additions & 2 deletions bin/museSetup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ QFOUND=""
for ARG in "$@"
do
if [ "$QFOUND" == "true" ]; then
MUSE_QUALS="$MUSE_QUALS $ARG"
[ "$ARG" != "-q" ] && MUSE_QUALS="$MUSE_QUALS $ARG"
elif [ "$ARG" == "-q" ]; then
QFOUND="true"
elif [[ "$ARG" == "-h" || "$ARG" == "--help" || "$ARG" == "help" ]]; then
Expand Down Expand Up @@ -305,6 +305,13 @@ if [ $MUSE_VERBOSE -gt 0 ]; then
done
fi

#
# include local UPS products
#
if [ -d $MUSE_WORK_DIR/artexternals ]; then
echo "INFO - Adding \$MUSE_WORK_DIR/artexternals to UPS PRODUCTS path"
export PRODUCTS=$MUSE_WORK_DIR/artexternals:$PRODUCTS
fi

#
# figure out what environmental UPS setups to run
Expand Down Expand Up @@ -403,7 +410,6 @@ if [ -z "$MUSE_ENVSET" ]; then
return 1
fi


if [ $MUSE_VERBOSE -gt 0 ]; then
echo "INFO - running environmental set $MUSE_ENVSET "
fi
Expand Down

0 comments on commit acfe132

Please sign in to comment.