1
/* dotest.cmd, the REXX-based equivalent to shell-script 'dotest' */
3
/* define the location */
6
curdir = Strip(curdir, 'T', '\') /* handle worst case: root */
9
guess = Stream('..\src\xmgrace.exe', 'C', 'QUERY EXISTS')
12
x11root = Value('X11ROOT', , 'OS2ENVIRONMENT')
13
guess = Stream(x11root'/XFree86/bin/xmgrace.exe', 'C', 'QUERY EXISTS')
26
gracehome = Value('GRACE_HOME', , 'OS2ENVIRONMENT')
27
guess = Stream(gracehome'/examples/explain.agr', 'C', 'QUERY EXISTS')
30
say 'No examples found'
35
exampledir = gracehome'/examples'
38
/* switch to example dir */
39
newdir=directory(exampledir)
41
/* command line parameters */
42
call ExecuteCmd GRACE' -usage'
44
/* call ExecuteCmd sleep 3 */
46
/* don't ask stupid questions */
47
GRACE = "xmgrace -noask"
49
/* explain the row of single character buttons and a few other things */
52
/* display the various axes available */
55
/* display the symbols and line styles */
58
/* display various fill styles */
61
/* some graph stuff and ticks */
64
/* some graph stuff and ticks */
67
/* demonstration of many graphs */
68
GRACE" manygraphs.agr"
70
/* some graph stuff and ticks */
71
GRACE" brw.dat -p regions.par"
73
/* test of a graph inset */
76
/* some time and date formats */
79
/* some more tick label formats */
86
GRACE" -autoscale none -p logtest.par log.dat -graph 1 log.dat"
94
/* a logit scale sample */
97
/* display fonts and font mappings */
100
/* text transforms */
103
/* advaned typesetting */
106
/* example of world stack */
109
/* a graph with a parameter file */
110
GRACE" -p test1.par -autoscale xy test.dat"
112
/* a graph with a parameter file in reverse video */
113
GRACE" -rvideo -p test1.par -autoscale xy test.dat"
117
/* explanation of arrow shape parameters */
120
/* multiple graphs with a parameter file */
121
GRACE" mlo.dat -graph 1 brw.dat -p co2.par"
123
/* multiple graphs created with arrange feature */
129
/* a graph with alternate axes */
130
GRACE" -p altaxis.par test.dat -autoscale xy"
132
/* a graph with error bars */
135
/* a fixed graph with XY RADIUS format */
138
/* string annotations */
141
/* a graph with an XYZ set */
144
/* a graph with HILO data */
147
/* a graph with BOXPLOT data */
155
/* a bar graph demonstrating specified ticks and tick labels */
158
/* a stacked bar chart */
161
/* a bar chart with error bars */
162
GRACE" chartebar.agr"
164
/* display all types of XY charts */
176
/* non-linear curve fitting */
179
/* some interesting stuff */
183
/* modified from previous versions, a thank you goes to Bruce Barnett */
184
/* this modification allows others without write permission */
185
/* to run the demos. */
188
rs = Stream('tmc.exe', 'C', 'QUERY EXISTS')
191
say "Compiling a short program to test the -pipe option"
192
say "Executing 'gcc tmc.c -o tmc.exe'"
193
'@gcc tmc.c -o tmc.exe'
194
say "Done compilation"
198
/* a graph with the -pipe option */
199
say "Testing -pipe option, executing './tmc | $GRACE -pipe' "
200
'.\tmc.exe | 'GRACE' -pipe'
201
call ExecuteCmd 'rm -f tmc.exe'
204
newdir=directory(curdir)
206
exit /* end of main program */
211
ExecuteCmd: PROCEDURE
214
ADDRESS CMD _silent_pre""EC_param