Mercurial > hg > octave-lyh
annotate doc/interpreter/images.awk @ 9971:d0680ace5fcb
oct-shlib.cc (octave_dlopen_shlib): reverse sense of test and improve error message
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 11 Dec 2009 20:59:27 -0500 |
parents | 955035efb929 |
children | e517da95bf98 |
rev | line source |
---|---|
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
1 BEGIN { |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
2 exts[1] = "eps"; |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
3 exts[2] = "pdf"; |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
4 exts[3] = "png"; |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
5 exts[4] = "txt"; |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
6 printf ("IMAGES_SRC =\n"); |
9910
49b9cab70b63
make rules to copy png files to html directory
John W. Eaton <jwe@octave.org>
parents:
9794
diff
changeset
|
7 printf ("HTMLDIR_IMAGES =\n"); |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
8 for (i = 1; i <= 4; i++) { |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
9 printf ("IMAGES_%s =\n", toupper (exts[i])); |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
10 } |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
11 } { |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
12 script = $1; |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
13 basename = script; |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
14 sub (/\.m$/, "", basename); |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
15 ubasename = toupper (basename); |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
16 printf ("IMAGES_SRC += %s\n", script); |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
17 for (i = 1; i <= 4; i++) { |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
18 ext = exts[i]; |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
19 uext = toupper (ext); |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
20 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
21 printf ("%s_%s =", ubasename, uext); |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
22 for (j = 2; j <= NF; j++) |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
23 printf (" %s.%s", $j, ext); |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
24 printf ("\n"); |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
25 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
26 printf ("IMAGES_%s += $(%s_%s)\n", uext, ubasename, uext); |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
27 |
9925
955035efb929
Revert to using Ghostscript for documentation pdf image creation rather than Octave
Rik <rdrider0-list@yahoo.com>
parents:
9910
diff
changeset
|
28 # Skip building pdf images in Octave |
955035efb929
Revert to using Ghostscript for documentation pdf image creation rather than Octave
Rik <rdrider0-list@yahoo.com>
parents:
9910
diff
changeset
|
29 # Use Makefile rule to transform .eps files to .pdf |
955035efb929
Revert to using Ghostscript for documentation pdf image creation rather than Octave
Rik <rdrider0-list@yahoo.com>
parents:
9910
diff
changeset
|
30 if (ext == "pdf") { |
955035efb929
Revert to using Ghostscript for documentation pdf image creation rather than Octave
Rik <rdrider0-list@yahoo.com>
parents:
9910
diff
changeset
|
31 continue; |
955035efb929
Revert to using Ghostscript for documentation pdf image creation rather than Octave
Rik <rdrider0-list@yahoo.com>
parents:
9910
diff
changeset
|
32 } |
955035efb929
Revert to using Ghostscript for documentation pdf image creation rather than Octave
Rik <rdrider0-list@yahoo.com>
parents:
9910
diff
changeset
|
33 |
9910
49b9cab70b63
make rules to copy png files to html directory
John W. Eaton <jwe@octave.org>
parents:
9794
diff
changeset
|
34 if (ext == "png") { |
49b9cab70b63
make rules to copy png files to html directory
John W. Eaton <jwe@octave.org>
parents:
9794
diff
changeset
|
35 printf ("HTMLDIR_IMAGES += "); |
49b9cab70b63
make rules to copy png files to html directory
John W. Eaton <jwe@octave.org>
parents:
9794
diff
changeset
|
36 for (j = 2; j <= NF; j++) |
49b9cab70b63
make rules to copy png files to html directory
John W. Eaton <jwe@octave.org>
parents:
9794
diff
changeset
|
37 printf (" octave.html/%s.png", $j); |
49b9cab70b63
make rules to copy png files to html directory
John W. Eaton <jwe@octave.org>
parents:
9794
diff
changeset
|
38 printf ("\n"); |
49b9cab70b63
make rules to copy png files to html directory
John W. Eaton <jwe@octave.org>
parents:
9794
diff
changeset
|
39 } |
49b9cab70b63
make rules to copy png files to html directory
John W. Eaton <jwe@octave.org>
parents:
9794
diff
changeset
|
40 |
49b9cab70b63
make rules to copy png files to html directory
John W. Eaton <jwe@octave.org>
parents:
9794
diff
changeset
|
41 for (j = 2; j <= NF; j++) { |
49b9cab70b63
make rules to copy png files to html directory
John W. Eaton <jwe@octave.org>
parents:
9794
diff
changeset
|
42 if (ext == "png") { |
49b9cab70b63
make rules to copy png files to html directory
John W. Eaton <jwe@octave.org>
parents:
9794
diff
changeset
|
43 printf ("octave.html/%s.png: %s.png octave.html\n", $j, $j); |
49b9cab70b63
make rules to copy png files to html directory
John W. Eaton <jwe@octave.org>
parents:
9794
diff
changeset
|
44 printf ("\tcp $< $@\n"); |
49b9cab70b63
make rules to copy png files to html directory
John W. Eaton <jwe@octave.org>
parents:
9794
diff
changeset
|
45 } |
49b9cab70b63
make rules to copy png files to html directory
John W. Eaton <jwe@octave.org>
parents:
9794
diff
changeset
|
46 printf ("%s.%s: %s\n", $j, ext, script); |
49b9cab70b63
make rules to copy png files to html directory
John W. Eaton <jwe@octave.org>
parents:
9794
diff
changeset
|
47 printf ("\t$(TOPDIR)/run-octave -f -q -H -p $(srcdir) --eval \"%s ('%s', '%s');\"\n", |
49b9cab70b63
make rules to copy png files to html directory
John W. Eaton <jwe@octave.org>
parents:
9794
diff
changeset
|
48 basename, $j, ext); |
49b9cab70b63
make rules to copy png files to html directory
John W. Eaton <jwe@octave.org>
parents:
9794
diff
changeset
|
49 } |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
50 } |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
51 } |