[go: up one dir, main page]

File: Makefile.am

package info (click to toggle)
scli 0.3.1-3.1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 4,872 kB
  • ctags: 8,627
  • sloc: ansic: 32,657; sh: 7,388; makefile: 321
file content (33 lines) | stat: -rw-r--r-- 960 bytes parent folder | download | duplicates (5)
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
info_TEXINFOS = scli.texinfo
scli_TEXINFOS = gpl.texinfo scli.texinfo

scli.texinfo:
	$(top_builddir)/scli/scli -n -c "show scli modes" | \
	awk '/^$$/		{ if (example) { \
				    printf("@end example\n"); \
				    example = 0; \
				  } \
				  if (verbatim) { \
				    printf("@end verbatim\n"); \
				    verbatim = 0; \
				  } \
				  printf("\n"); next } \
	     /^[A-Z][A-Z  ]*$$/	{ printf("@section %s\n", $$0); next } \
	     /^    /		{ if (! example) { \
				    printf("\n@example\n"); \
				    example = 1; \
				  } \
				  while (sub(/^ /, "")) ; \
				  while (sub(/ $$/, "")) ; \
				  printf("@command{%s}\n", $$0); \
				  next } \
	     /^  /		{ if (! verbatim) { \
				    printf("@verbatim\n"); \
				    verbatim = 1; \
				  } \
				  printf("%s\n", $$0); \
				  next } \
	     /^ $$/		{ next } \
	     //			{ printf("%s\n", $$0) }' | \
	sed -e "s/\`/@command\\{/" -e "s/'/\\}/" > modes.texinfo
	m4 -P scli.texinfo.in > scli.texinfo