Mercurial > octave-nkf
annotate doc/interpreter/images.awk @ 20600:1d6ab08edcde stable
Add Ethan Biery to list of contributors
author | Philip Nienhuis <prnienhuis@users.sf.net> |
---|---|
date | Thu, 01 Oct 2015 22:38:34 +0200 |
parents | 4f6ae6b94abe |
children | c3c1fb44f9b5 |
rev | line source |
---|---|
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
1 BEGIN { |
19826
4f6ae6b94abe
make --enable-silent-rules configure option more useful
John W. Eaton <jwe@octave.org>
parents:
18013
diff
changeset
|
2 print "## DO NOT EDIT -- generated from module-files by config-module.awk"; |
4f6ae6b94abe
make --enable-silent-rules configure option more useful
John W. Eaton <jwe@octave.org>
parents:
18013
diff
changeset
|
3 print ""; |
4f6ae6b94abe
make --enable-silent-rules configure option more useful
John W. Eaton <jwe@octave.org>
parents:
18013
diff
changeset
|
4 |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
5 exts[1] = "eps"; |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
6 exts[2] = "pdf"; |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
7 exts[3] = "png"; |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
8 exts[4] = "txt"; |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
9 printf ("IMAGES_SRC =\n"); |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
10 for (i = 1; i <= 4; i++) { |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
11 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
|
12 } |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
13 } { |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
14 script = $1; |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
15 basename = script; |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
16 sub (/\.m$/, "", basename); |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
17 ubasename = toupper (basename); |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
18 printf ("IMAGES_SRC += %s\n", script); |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
19 for (i = 1; i <= 4; i++) { |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
20 ext = exts[i]; |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
21 uext = toupper (ext); |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
22 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
23 printf ("%s_%s =", ubasename, uext); |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
24 for (j = 2; j <= NF; j++) |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
25 printf (" %s.%s", $j, ext); |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
26 printf ("\n"); |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
27 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
28 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
|
29 |
9910
49b9cab70b63
make rules to copy png files to html directory
John W. Eaton <jwe@octave.org>
parents:
9794
diff
changeset
|
30 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
|
31 printf ("%s.%s: %s\n", $j, ext, script); |
19826
4f6ae6b94abe
make --enable-silent-rules configure option more useful
John W. Eaton <jwe@octave.org>
parents:
18013
diff
changeset
|
32 printf ("\t$(AM_V_GEN)$(top_builddir)/run-octave -f -q -H -p $(srcdir) --eval \"%s ('%s', '%s');\"\n", |
18013
501cb6a90f0f
maint: Replace unnecessary tabs with spaces.
Rik <rik@octave.org>
parents:
15266
diff
changeset
|
33 basename, $j, ext); |
9910
49b9cab70b63
make rules to copy png files to html directory
John W. Eaton <jwe@octave.org>
parents:
9794
diff
changeset
|
34 } |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
35 } |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
36 } |