forked from NAG-DevOps/speed-hpc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
manual.sh
executable file
·45 lines (34 loc) · 1.02 KB
/
manual.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
#!/encs/bin/tcsh
##
## Job Scheduler options
##
#SBATCH --job-name=speed-manual ## Give the job a name
#SBATCH --mail-type=ALL ## Receive all email type notifications
#SBATCH --chdir=./ ## Use currect directory as working directory
#SBATCH --cpus-per-task=2 ## Request 2 cpus
#SBATCH --mem=1G ## Assign memory per node
##
## Job to run
##
# timestamp
echo "$0 : about to run Speed manual generation job on Speed :-)"
date
# Pull speed-hpc sources latest commit only to avoid
# downloading all the history. For fun time the longer
# running commands.
time srun git clone --depth 1 --branch master https://github.com/NAG-DevOps/speed-hpc.git
# We need to be in the doc directory
cd speed-hpc/doc
pwd
# Generate PDF manual
time srun make
# Generate the HTML manual
# 2023 TeXLive HTML generation gives obscure error
setenv PATH "/encs/pkg/texlive-20220405/root/bin/x86_64-linux:$PATH"
time srun make html
# Report generated files
ls -al *.pdf web/*
git status
echo "$0 : Done!"
date
# EOF