-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.sh
executable file
·73 lines (73 loc) · 1.82 KB
/
build.sh
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/bin/bash
#@(#) rebuild pages
# requires a lot of infrastructure to run, including
# pandoc
# fpm-standalone
# fpm
# fortran compiler, defaults to gfortran
cd $(dirname $0)
(
exec 2>&1
set -x
######################################
scripts/scripts/totxt.sh
######################################
(
cd scripts
make
make demos
make ship
make list
)
######################################
(
cd example
make clean
)
######################################
scripts/scripts/slidy.sh
fpm build
ford ford.md
######################################
(
fpm standalone
mv standalone.f90 standalone/fman.F90
cd standalone
gfortran fman.F90 -o fpm-man
rm -f fpm-man
)
######################################
(
cd example
bash ../scripts/play.sh demo_*.f90 > ../docs/playground.html
)
######################################
# wrap up
set +x
fpm install
echo 'Check for long lines'
fpm-man -lines 0 manual |grep '##'
fpm-man -lines 0 manual |findll -l 80
echo 'Check for lines that will be accidently seen as *roff directives'
grep '^\.' txt/*.man
grep ' _' txt/*.man
file md?/*.md|grep -v ASCII
)|tee /tmp/M_intrinsics.log
######################################
fpm install
cp standalone/fman.F90 $HOME/github/lockstockandbarrel/mars/bootstrap/fman.F90
cp docs/manpages7.zip $HOME/github/lockstockandbarrel/mars/docs/7fortran.zip
cp docs/manpages5.zip $HOME/github/lockstockandbarrel/mars/docs/5fortran.zip
cp docs/manpages3.zip $HOME/github/lockstockandbarrel/mars/docs/3fortran.zip
######################################
# man-page source for building GPF (General Purpose Fortran) library documents
cp txt/* $HOME/LIBRARY/libGPF/download/doc/
######################################
(
# build and install fpm-man
bash scripts/rebuild.sh
)
######################################
exit
######################################
https://fortran-lang.org/en/learn/intrinsics/array/#pack