Skip to content

Commit

Permalink
Update ToolAnalysisMyTools.sh
Browse files Browse the repository at this point in the history
Adding more information
  • Loading branch information
marvlad authored Dec 17, 2024
1 parent b861b43 commit 84f2505
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions script/ToolAnalysisMyTools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,25 @@
# Dummy test by M. Ascencio, Dec-2024
# [email protected]

##########################################################################
# chmod +x ToolAnalysisMyTools.sh
# Description: The script creates a build_{configfileName} directory in ./ToolAnalysis. It copies
# the necessary default files and directories to build_{configfileName} in addition to the toolchains
# used in your configfileName. You will need to `source Setup.sh` in the build_{configfileName} directory
# and compile with `make clean` and `make`. WARNING, do not use `make -jN` where N is the number of cores.
# For some reason `make -jN` will compile fine but the Total events for example will be random.
#
# USE:
# ./ToolAnalysisMyTools.sh configfileName
#
# If its more than one configfileName you need to use a "," without space as follows:
# ./ToolAnalysisMyTools.sh "configfileName1,configfileName2,..."
#
# You can clean the built directory with:
# ./ToolAnalysisMyTools.sh configfileName clean
# ./ToolAnalysisMyTools.sh "configfileName1,configfileName2,..." clean
##########################################################################

setBuild(){

# Copy the main tools, scripts, etc
Expand Down Expand Up @@ -118,9 +137,10 @@ setBuild(){
if [ $# -eq 0 ]; then
echo "###################################################################################################"
echo "# No arguments provided. Please provide at least one argument. "
echo "# Usage: '$0 [Toolchain_name]' or"
echo "# '$0 \"Tool1,Tool2,...\"' or"
echo "# '$0 [Toolchain_name] clean' "
echo "# Usage: '$0 [configfileName]' or"
echo "# '$0 \"configfileName1,configfileName2,...\"' or"
echo "# '$0 [configfileName] clean' or "
echo "# '$0 \"configfileName1,configfileName2\" clean'
echo "###################################################################################################"
exit 1
fi
Expand All @@ -140,6 +160,6 @@ if [ $# -eq 1 ]; then
elif [ $# -eq 2 ] && [ "$2" == "clean" ]; then
rm -rf ../$DIR_NAME
else
echo "Invalid argument. Usage: '$0 [Toolchain_name]' or '$0 \"Tool1,Tool2,...\" or '$0 [Toolchain_name] clean'"
echo "Invalid argument. Usage: '$0 [configfileName]' or '$0 \"configfileName1,configfileName2,...\" or '$0 [configfileName] clean'"
exit 1
fi

0 comments on commit 84f2505

Please sign in to comment.