Commit 14ada671 authored by Benoit Rat's avatar Benoit Rat

build: improve step compilation using list (see --help)

parent c09776e7
......@@ -58,7 +58,7 @@ showhelp() {
echo " --pack Create a tar.gz package with the files"
echo " --clean Remove all the previous configuration"
echo " --list List the different building steps"
echo " --step=[00-09] Perform one specific step"
echo " --step=<XX> Perform specific step(s) (e.g. --step=01 or --step=\"5 7 9\")"
echo ""
exit 0;
}
......@@ -90,6 +90,14 @@ clean()
exit 0
}
## Remove _done tag to a specific step or a list of specific test --step="5 7 9"
step()
{
for num in $1; do
rm -v ${WRS_OUTPUT_DIR}/build/_done/$(printf "%02d" ${num})-*
done
}
## Menu to select the function in case we have an argument
......@@ -99,7 +107,7 @@ if [ -n "$1" ]; then
--clean) clean;;
--list) cd $WRS_DONE_DIR; ls 0*; exit 0;;
--pack) pack; exit 0;;
--step=0[0-9]) num=`echo $1 | sed -e 's/--step=//'`; rm -vf $WRS_DONE_DIR/${num}-*;;
--step=*) seq=$(echo "$1" | sed -e 's/--step=//'); step "$seq";;
*) showhelp;;
esac
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment