source:
branches/2014/dev_r4743_NOC2_ZTS/NEMOGCM/TOOLS/COMPILE/Ffetch_extdir.sh
@
4838
Last change on this file since 4838 was 4838, checked in by acc, 10 years ago | |
---|---|
|
|
File size: 809 bytes |
Rev | Line | |
---|---|---|
[4837] | 1 | #!/bin/bash |
2 | #set -x | |
3 | set -o posix | |
4 | #set -u | |
5 | #set -e | |
6 | #+ | |
7 | # =============== | |
8 | # Ffetch_extdir.sh | |
9 | # =============== | |
10 | # --------------- | |
11 | # Make the config | |
12 | # --------------- | |
13 | # SYNOPSIS | |
14 | # ======== | |
15 | # :: | |
16 | # $ Ffetch_extdir.sh | |
17 | # DESCRIPTION | |
18 | # =========== | |
19 | # - Make the config directory | |
20 | # - Create repositories needed : | |
21 | # | |
22 | # - EXP00 for namelist | |
23 | # - MY_SRC for user sources | |
24 | # - BLD for compilation | |
25 | # EXAMPLES | |
26 | # ======== | |
27 | # :: | |
28 | # $ ./Ffetch_extdir.sh CONFIG_NAME REMOTE_CTL | |
29 | # TODO | |
30 | # ==== | |
31 | # option debug | |
32 | # EVOLUTIONS | |
33 | # ========== | |
34 | # $Id: Ffetch_extdir.sh 3715 2012-11-28 16:06:02Z acc $ | |
35 | # * creation | |
36 | #- | |
37 | basedir=$(pwd) | |
38 | cd ${1} | |
39 | wget ${2} -O remote_file.list | |
40 | # | |
41 | if [ -f remote_file.list ] ; then | |
[4838] | 42 | cat remote_file.list | grep -v '^#' | |
[4837] | 43 | while |
44 | read remfile locfile | |
45 | do | |
46 | wget $remfile -O $locfile | |
47 | done | |
48 | fi | |
49 | cd $basedir |
Note: See TracBrowser
for help on using the repository browser.