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
#!/bin/bash
cd ../..
for software in `cat $1`
do
mkdir `echo "$software" | awk -F'-' '{print $1}'`
cd `echo "$software" | awk -F'-' '{print $1}'`
cat > build-$software.job <<EOF
#!/bin/bash
#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
#SBATCH --mail-user=rc-build@vo.uabgrid.uab.edu
eb $software -r >> `echo "$software" | awk -F'-' '{print $1}'`.out
EOF
sbatch build-$software.job
cd ..
done
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