Blame view

mksource.sh 998 Bytes
26362238   Dany Dumont   premier depot
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
touch m_empty.F90
ls modules.F90 mod_*.F90 m_*.F90 |\
awk  '{
    CC[NR]=$1
}
END { 
    printf("MODULES = \\\n")
    for (i = 1; i < NR; i++) printf("\t%s\\\n", CC[i])
    printf("\t%s\n\n", CC[NR])
}'

touch m_empty.F
ls mod_*.F m_*.F |\
awk  '{
    CC[NR]=$1
}
END { 
    printf("MODULES77 = \\\n")
    for (i = 1; i < NR; i++) printf("\t%s\\\n", CC[i])
    printf("\t%s\n\n", CC[NR])
}'

ls *.H |\
awk  '{
    CC[NR]=$1
}
END { 
    printf("INC1 = \\\n")
    for (i = 1; i < NR; i++) printf("\t%s\\\n", CC[i])
    printf("\t%s\n\n", CC[NR])
}'


ls *.F90 | sed -e '/^modules/d' -e '/^mod_/d' -e '/^m_/d' -e '/^p_/d' |\
awk  '{
    CC[NR]=$1
}
END { 
    printf("F90FILES = \\\n")
    for (i = 1; i < NR; i++) printf("\t%s\\\n", CC[i])
    printf("\t%s\n\n", CC[NR])
}'


ls  *.F | sed -e '/^modules/d' -e '/^mod_/d' -e '/^m_/d' -e '/^p_/d' |\
awk  '{
    CC[NR]=$1
}
END { 
    printf("F77FILES = \\\n")
    for (i = 1; i < NR; i++) printf("\t%s\\\n", CC[i])
    printf("\t%s\n\n", CC[NR])
}'