File: Makefile.am

package info (click to toggle)
scli 0.2.8-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 3,436 kB
  • ctags: 7,975
  • sloc: ansic: 21,029; sh: 6,682; makefile: 211
file content (32 lines) | stat: -rw-r--r-- 868 bytes parent folder | download
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
info_TEXINFOS = 
scli_TEXINFOS = 

modes.texinfo: $(top_builddir)/scli/scli
	$(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) }' > modes.texinfo