forked from mpi-forum/mem-alloc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MAKE-MPI-REPORT
executable file
·96 lines (82 loc) · 2.37 KB
/
MAKE-MPI-REPORT
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#!/bin/csh
#MAKE-MPI-REPORT
#adopted from HPF script by Steve Otto, July 29, 1993
#thanks to: David Loveman, Digital Equipment Corporation
#set TEXroot=/usr/local/bin
#alias latex $TEXroot/latex
alias latex pdflatex
#alias dvips $TEXroot/dvips
#alias xdvi $TEXroot/xdvi
set thedate = `date`
echo " "
echo BEGIN JOB ON: $thedate
echo "This script assumes that latex, bibtex, dvips, and xdvi"
echo "are on your search path."
echo " "
which latex
##################################################
# Run LATEX the first time
##################################################
echo " "
echo "latex mpi-report the first time"
latex mpi-report < /dev/null
if($status != 0) then
echo "first LATEX run fails, quit"
exit(1)
endif
##################################################
# Run BIBTEX
##################################################
echo " "
echo "bibtex mpi-report"
bibtex mpi-report < /dev/null
if($status != 0) then
echo "BibTeX run fails, quit"
exit(1)
endif
##################################################
# Run LATEX the second time
##################################################
echo " "
echo "latex mpi-report the second time"
latex mpi-report < /dev/null
if($status != 0) then
echo "second LATEX run fails, quit"
exit(1)
endif
##################################################
# Run LATEX the third time
##################################################
echo " "
echo "latex mpi-report the third time"
latex mpi-report < /dev/null
if($status != 0) then
echo "third LATEX run fails, quit"
exit(1)
endif
##################################################
# Run xdvi to view the .dvi file
##################################################
echo " "
echo "xdvi mpi-report"
# xdvi mpi-report &
##################################################
# Run dvips to produce a ps file
##################################################
echo " "
echo "dvips -o mpi-report.ps mpi-report"
dvips -o mpi-report.ps mpi-report
if($status != 0) then
echo "DVIPS fails, quit"
exit(1)
endif
##################################################
# Print the ps file
##################################################
echo " "
echo "now print the postscript file (this script doesn't)"
echo "the MPI Report is meant to be two-sided"
echo "CAUTION: do not run CLEANUP until printing has completed"
echo " "
echo "done"
echo " "