Mercurial > repos > climate > cesm
comparison 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 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:7a7ba86e95a4 |
---|---|
1 #!/usr/bin/env bash | |
2 | |
3 echo "==========================================" | |
4 echo " Create symbolic link for input data " | |
5 echo "==========================================" | |
6 | |
7 echo "Search for $2..." | |
8 | |
9 create_link=$(grep $2 $3) | |
10 dir=$(dirname $create_link) | |
11 | |
12 echo "mkdir -p inputdata/$dir" | |
13 mkdir -p inputdata/$dir | |
14 | |
15 echo "ln -s $1 inputdata/$create_link" | |
16 ln -s $1 inputdata/$create_link |