Mercurial > repos > climate > cesm
diff create_mapping.sh @ 0:7a7ba86e95a4 draft default tip
"planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
author | climate |
---|---|
date | Tue, 15 Jun 2021 09:39:23 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/create_mapping.sh Tue Jun 15 09:39:23 2021 +0000 @@ -0,0 +1,16 @@ +#!/usr/bin/env bash + +echo "==========================================" +echo " Create symbolic link for input data " +echo "==========================================" + +echo "Search for $2..." + +create_link=$(grep $2 $3) +dir=$(dirname $create_link) + +echo "mkdir -p inputdata/$dir" +mkdir -p inputdata/$dir + +echo "ln -s $1 inputdata/$create_link" +ln -s $1 inputdata/$create_link