source:
utils/build/mk/Flist_archfile.sh
@
11037
Last change on this file since 11037 was 9651, checked in by nicolasmartin, 6 years ago | |
---|---|
|
|
File size: 1.0 KB |
Rev | Line | |
---|---|---|
[2143] | 1 | #!/bin/bash |
2 | #set -x | |
3 | set -o posix | |
4 | #set -u | |
5 | #set -e | |
6 | #+ | |
7 | # | |
8 | # ================== | |
9 | # Flist_archfile.sh | |
10 | # ================== | |
11 | # | |
12 | # -------------------------- | |
13 | # Check the compilation file | |
14 | # -------------------------- | |
15 | # | |
16 | # SYNOPSIS | |
17 | # ======== | |
18 | # | |
19 | # :: | |
20 | # | |
[3294] | 21 | # $ Flist_archfile.sh Institute |
[2143] | 22 | # |
23 | # | |
24 | # DESCRIPTION | |
25 | # =========== | |
26 | # | |
27 | # | |
[2520] | 28 | # List arch file available. |
[9598] | 29 | # The first line of each file in NEMO/arch directory is echoed. |
[2143] | 30 | # |
[2520] | 31 | # |
[2143] | 32 | # EXAMPLES |
33 | # ======== | |
34 | # | |
35 | # :: | |
36 | # | |
37 | # $ ./Flist_archfile.sh | |
38 | # | |
[3294] | 39 | # $ ./Flist_archfile.sh CNRS |
[2143] | 40 | # |
41 | # TODO | |
42 | # ==== | |
43 | # | |
44 | # option debug | |
45 | # | |
46 | # | |
47 | # EVOLUTIONS | |
48 | # ========== | |
49 | # | |
50 | # $Id$ | |
51 | # | |
52 | # | |
53 | # | |
54 | # * creation | |
55 | # | |
56 | #- | |
[3294] | 57 | |
[9651] | 58 | archfile_loop() { |
[3294] | 59 | |
[9651] | 60 | for file in $( ls $1/*.fcm ); do |
61 | zvar1=$( basename $file | sed 's/arch-\(.*\).fcm/\1/' ) | |
62 | zvar2=$( head -1 $file | tr -d '#' ) | |
63 | printf "%-30s %-s\n" ${zvar1} "${zvar2}" | |
64 | done | |
65 | ||
66 | } | |
67 | ||
68 | echo -e "\n ¤ Generic computing architectures" | |
69 | ||
70 | archfile_loop ${MAIN_DIR}/arch | |
71 | ||
72 | for dir in $( ls ${MAIN_DIR}/arch | grep -v "fcm$" ); do | |
73 | echo -e "\n ¤ Specific HPC architectures for "${dir} | |
74 | archfile_loop ${MAIN_DIR}/arch/$dir | |
[2143] | 75 | done |
[3294] | 76 | |
[9651] | 77 | echo |
Note: See TracBrowser
for help on using the repository browser.