Commit acf2234c authored by Ravi Tripathi's avatar Ravi Tripathi
Browse files

Adding a script for rc-build user to build softwares through an input file

parent 664df8ae
# This script builds the softwares listed in ebinput.txt by
# creating a slurm script for it's build using EasyBuild.
# This also creates a general directory structure for the project
cd ../..
for software in `cat $1`
mkdir `echo "$software" | awk -F'-' '{print $1}'`
cd `echo "$software" | awk -F'-' '{print $1}'`
cat > build-$software.job <<EOF
#SBATCH --share
#SBATCH --partition=medium
#SBATCH --job-name=build-`echo "$software" | awk -F'-' '{print $1}'`
#SBATCH --output=out.txt
#SBATCH --error=`echo "$software" | awk -F'-' '{print $1}'`.err
#SBATCH --ntasks=4
#SBATCH --time=08:00:00
#SBATCH --mem-per-cpu=1024
#SBATCH --mail-type=END
#SBATCH --mail-type=FAIL
eb $software -r >> `echo "$software" | awk -F'-' '{print $1}'`.out
sbatch build-$software.job
cd ..
Supports Markdown
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