diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-10-12 23:41:21 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-10-12 23:42:04 +0300 |
commit | 8a4ba77068e5d7f6eab2cc1c1c10f31dcbccf7a6 (patch) | |
tree | c70f38d943c778684bb9dbfc7db018e7efb21bf1 | |
parent | af04ed630f18e9003756317cc627a11084d0d59a (diff) | |
download | pies-8a4ba77068e5d7f6eab2cc1c1c10f31dcbccf7a6.tar.gz pies-8a4ba77068e5d7f6eab2cc1c1c10f31dcbccf7a6.tar.bz2 |
Fix make distcheck and check-docs.
* doc/Makefile.am: Fix `check-*' goals.
* doc/pies.texi: Update and rearrange material.
Document new configuration.
* lib/Makefile.am (libpies_a_SOURCES): Remove nls.c
* src/Makefile.am (EXTRA_DIST): Remove pies.rc, add
pp-setup.
(INCLUDES): Add $(top_builddir)/gnu
* src/pies.c: Minor changes.
* src/progman.c: Minor changes.
* README-hacking: New file.
-rw-r--r-- | README-hacking | 75 | ||||
-rw-r--r-- | doc/Makefile.am | 53 | ||||
-rw-r--r-- | doc/pies.texi | 715 | ||||
-rw-r--r-- | lib/Makefile.am | 3 | ||||
-rw-r--r-- | lib/nls.c | 33 | ||||
-rw-r--r-- | lib/strtotok.c | 77 | ||||
-rw-r--r-- | src/Makefile.am | 8 | ||||
-rw-r--r-- | src/acl.c | 627 | ||||
-rw-r--r-- | src/acl.h | 43 | ||||
-rw-r--r-- | src/addrfmt.c | 133 | ||||
-rw-r--r-- | src/diag.c | 131 | ||||
-rw-r--r-- | src/meta.c | 127 | ||||
-rw-r--r-- | src/pies.c | 68 | ||||
-rw-r--r-- | src/pp-setup | 116 | ||||
-rw-r--r-- | src/progman.c | 4 | ||||
-rw-r--r-- | src/url.c | 212 | ||||
-rw-r--r-- | src/userprivs.c | 279 |
17 files changed, 2481 insertions, 223 deletions
diff --git a/README-hacking b/README-hacking new file mode 100644 index 0000000..9441c46 --- /dev/null +++ b/README-hacking | |||
@@ -0,0 +1,75 @@ | |||
1 | These notes intend to help people working on the GIT version of Pies. | ||
2 | See end of file for copying conditions. | ||
3 | |||
4 | * Requirements | ||
5 | |||
6 | If you have taken the sources from GIT you will need the following | ||
7 | packages to build Pies. I don't make any extra effort to accommodate | ||
8 | older versions of these packages, so please make sure that you have the | ||
9 | latest stable version. | ||
10 | |||
11 | - Automake <http://www.gnu.org/software/automake/> | ||
12 | - Autoconf <http://www.gnu.org/software/autoconf/> | ||
13 | - Bison <http://www.gnu.org/software/bison/> | ||
14 | - Flex <http://flex.sourceforge.net/> | ||
15 | - Gettext <http://www.gnu.org/software/gettext/> | ||
16 | - Gnulib <http://www.gnu.org/software/gnulib/> | ||
17 | - M4 <http://www.gnu.org/software/m4/> | ||
18 | - Rsync <http://samba.anu.edu.au/rsync/> | ||
19 | - Texinfo <http://www.gnu.org/software/texinfo> | ||
20 | |||
21 | * Bootstrapping | ||
22 | |||
23 | Obviously, if you are reading these notes, you did manage to check out | ||
24 | the project from GIT. The next step is to get other files needed to build, | ||
25 | which are extracted from other source packages: | ||
26 | |||
27 | 1. Change to the source tree directory | ||
28 | |||
29 | cd pies | ||
30 | |||
31 | 2. Run | ||
32 | |||
33 | ./bootstrap | ||
34 | |||
35 | Once done, proceed as described in the file README (section | ||
36 | INSTALLATION). | ||
37 | |||
38 | Normally you will have to run bootstrap only once. However, if you | ||
39 | intend to hack on Pies, you might need to run it again later. In | ||
40 | this case, you will probably want to save some time and bandwidth by | ||
41 | avoiding downloading the same files again. If so, create in the | ||
42 | project's root directory the file named `.bootstrap' with the following | ||
43 | contents: | ||
44 | |||
45 | --gnulib-srcdir=$HOME/gnulib | ||
46 | |||
47 | Replace `$HOME/gnulib' with the actual directory where the Gnulib | ||
48 | sources reside. | ||
49 | |||
50 | If you wish to avoid synchronising translations, add this option: | ||
51 | --skip-po. | ||
52 | |||
53 | For more information about `bootstrap', run `bootstrap --help'. | ||
54 | |||
55 | |||
56 | * Copyright information | ||
57 | |||
58 | Copyright (C) 2008, 2009 Sergey Poznyakoff | ||
59 | |||
60 | Permission is granted to anyone to make or distribute verbatim copies | ||
61 | of this document as received, in any medium, provided that the | ||
62 | copyright notice and this permission notice are preserved, | ||
63 | thus giving the recipient permission to redistribute in turn. | ||
64 | |||
65 | Permission is granted to distribute modified versions | ||
66 | of this document, or of portions of it, | ||
67 | under the above conditions, provided also that they | ||
68 | carry prominent notices stating who last changed them. | ||
69 | |||
70 | |||
71 | Local Variables: | ||
72 | mode: outline | ||
73 | paragraph-separate: "[ ]*$" | ||
74 | version-control: never | ||
75 | End: | ||
diff --git a/doc/Makefile.am b/doc/Makefile.am index 502c46e..d7d69d1 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am | |||
@@ -37,65 +37,33 @@ check-format: | |||
37 | false; \ | 37 | false; \ |
38 | fi | 38 | fi |
39 | 39 | ||
40 | check-pragmas: | ||
41 | @check-docs.sh pragmas \ | ||
42 | '/} option_cache\[\] = {/,/^}/s/[ \t]*{ *"\(.*\)".*/\1/pg' \ | ||
43 | 's/@deffnx* {pragma option} *\([^@, ]*\) .*/\1/p' \ | ||
44 | $(top_srcdir)/mfd/main.c -- \ | ||
45 | $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) -E - \ | ||
46 | $(info_TEXINFOS) | ||
47 | |||
48 | check-options: | 40 | check-options: |
49 | @check-docs.sh options \ | 41 | @check-docs.sh options \ |
50 | '/argp_option options\[\] = /,/^}/s/[ \t]*{ *"\([^,"]*\)".*/\1/pg' \ | 42 | '/argp_option options\[\] = /,/^}/s/[ \t]*{ *"\([^,"]*\)".*/\1/pg' \ |
51 | 's/@opindex *\([^@,]*\).*/\1/p' \ | 43 | 's/@opindex *\([^@,]*\).*/\1/p' \ |
52 | $(top_srcdir)/mfd/main.c -- \ | 44 | $(top_srcdir)/src/pies.c -- \ |
53 | $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) -E - \ | 45 | $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) -E - \ |
54 | $(info_TEXINFOS) | 46 | $(info_TEXINFOS) |
55 | 47 | ||
56 | check-config: | 48 | check-config: |
57 | @check-docs.sh 'configuration statements' \ | 49 | @check-docs.sh 'configuration statements' \ |
58 | '/mf_cfg_param\[\] *= *{/,/^}/s/[ \t]*{ *"\([^,"]*\)".*/\1/pg' \ | 50 | '/pies_keywords\[\] *= *{/,/^}/s/[ \t]*{ *"\([^,"]*\)".*/\1/pg' \ |
59 | 's/@deffn {Pies Conf} *\([^@,]*\).*/\1/p' \ | 51 | 's/@deffn {Config} *\([^@,]*\).*/\1/p' \ |
60 | $(top_srcdir)/mfd/main.c -- \ | 52 | $(top_srcdir)/src/pies.c -- \ |
61 | $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) -E - \ | 53 | $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) -E - \ |
62 | $(info_TEXINFOS) | 54 | $(info_TEXINFOS) |
63 | 55 | ||
64 | check-sub-config: | 56 | check-sub-config: |
65 | @list=`sed -n '/mf_cfg_param\[\] *= *{/,/^}/{s/[ \t]*{ *"\([^,"]*\)", *mu_cfg_section *,.*/\1/pg}' $(top_srcdir)/mfd/main.c`; \ | 57 | sed -n '/pies_keywords\[\] *= *{/,/^}/{p}' ../src/pies.c|tr '\n{' ' \n'|sed -n '/grecs_type_section/s/"\([^"]*\)".*grecs_type_section,[^,]*,[^,]*,[^,]*,[^,]*, *\(.*\) *}.*/\1 \2/p' | \ |
66 | for ident in $$list; do \ | 58 | while read ident kw; do \ |
67 | check-docs.sh "$$ident configuration statements" \ | 59 | check-docs.sh "$$ident configuration statements" \ |
68 | "/$${ident}_section_param"'\[\] *= *{/,/^}/s/[ \t]*{ *"\([^,"]*\)".*/\1/pg' \ | 60 | "/$$kw"'\[\] *= *{/,/^}/s/[ \t]*{ *"\([^,"]*\)".*/\1/pg' \ |
69 | "s/@deffn {$${ident}}"' *\([^@,]*\).*/\1/p' \ | 61 | "s/@deffn {Config: *$${ident}}"' *\([^@,]*\).*/\1/p' \ |
70 | $(top_srcdir)/mfd/main.c -- \ | 62 | $(top_srcdir)/src/pies.c $(top_srcdir)/src/acl.c -- \ |
71 | $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) -E - \ | 63 | $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) -E - \ |
72 | $(info_TEXINFOS); \ | 64 | $(info_TEXINFOS); \ |
73 | done | 65 | done |
74 | 66 | ||
75 | check-builtins: | ||
76 | @check-docs.sh builtins \ | ||
77 | '/MF_DEFUN/{s/[ \t]*MF_DEFUN *(\([a-zA-Z_][a-zA-Z0-9_]*\),.*/\1/p;s/[ \t]*MF_DEFUN_VARARGS\(_NO_PROM\)\? *(\([a-zA-Z_][a-zA-Z0-9_]*\),.*/\2/p;s/[ \t]*MF_DEFUN_CTYPE *(\([a-zA-Z_][a-zA-Z0-9_]*\))/\1/p}'\ | ||
78 | 's/@deftypefnx\{0,1\} {Built-in Function} *[^ ][^ ]* *\([^ ]*\).*/\1/p' \ | ||
79 | $(top_srcdir)/mfd/bi_*.m4 -- \ | ||
80 | $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) -E - \ | ||
81 | $(info_TEXINFOS) | ||
82 | |||
83 | check-mflib: | ||
84 | @check-docs.sh "library functions" \ | ||
85 | '/^[ \t]*func[ \t][ \t]*__/b;/^[ \t]*func/s/[ \t]*func[ \t][ \t]*\(.[^ \t(]*\).*/\1/p' \ | ||
86 | 's/@deftypefn {Library Function} *[^ ][^ ]* *\([^ ]*\).*/\1/p' \ | ||
87 | $(top_srcdir)/mflib/*.mf -- \ | ||
88 | $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) -E - \ | ||
89 | $(info_TEXINFOS) | ||
90 | |||
91 | check-exceptions: | ||
92 | @check-docs.sh exceptions \ | ||
93 | '/typedef enum mf_exception_code {/,/^};/s/[ \t]*mfe_\(.*\),.*/e_\1/p;/typedef enum mf_status_code {/,/^};/s/[ \t]*mf_\(.*\),.*/\1/p' \ | ||
94 | 's/@cindex \([^,][^,]*\), exception type/\1/p' \ | ||
95 | $(top_srcdir)/mfd/pies.h -- \ | ||
96 | $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) -E - \ | ||
97 | $(info_TEXINFOS) | ||
98 | |||
99 | check-refs: | 67 | check-refs: |
100 | @for file in $(info_TEXINFOS) $(pies_TEXINFOS); \ | 68 | @for file in $(info_TEXINFOS) $(pies_TEXINFOS); \ |
101 | do \ | 69 | do \ |
@@ -147,9 +115,8 @@ check-unrevised: | |||
147 | rm $@-t; \ | 115 | rm $@-t; \ |
148 | fi | 116 | fi |
149 | 117 | ||
150 | all-check-docs: check-format check-options check-pragmas \ | 118 | all-check-docs: check-format check-options \ |
151 | check-config check-sub-config \ | 119 | check-config check-sub-config \ |
152 | check-builtins check-mflib check-exceptions \ | ||
153 | check-refs check-fixmes check-writeme check-unrevised | 120 | check-refs check-fixmes check-writeme check-unrevised |
154 | 121 | ||
155 | check-docs: | 122 | check-docs: |
diff --git a/doc/pies.texi b/doc/pies.texi index cc35b5d..22c0f83 100644 --- a/doc/pies.texi +++ b/doc/pies.texi | |||
@@ -78,27 +78,25 @@ documents @command{pies} Version @value{VERSION}. | |||
78 | @menu | 78 | @menu |
79 | * Intro:: | 79 | * Intro:: |
80 | * Pies Configuration File:: | 80 | * Pies Configuration File:: |
81 | * Component Statement:: | ||
82 | * include-meta1:: | ||
83 | * Global Configuration:: | ||
84 | * Pies Debugging:: | 81 | * Pies Debugging:: |
85 | * Configuration Example:: | 82 | * Configuration Example:: |
86 | * Command Line Usage:: | 83 | * Command Line Usage:: |
87 | * Pies Invocation:: | 84 | * Pies Invocation:: |
85 | * Reporting Bugs:: | ||
88 | 86 | ||
89 | Appendices | 87 | Appendices |
90 | 88 | ||
91 | * Copying This Manual:: The GNU Free Documentation License. | 89 | * Copying This Manual:: The GNU Free Documentation License. |
92 | * Concept Index:: Index of Concepts. | 90 | * Concept Index:: Index of Concepts. |
93 | 91 | ||
94 | @c @detailmenu | 92 | @detailmenu |
95 | @c @end detailmenu | 93 | @end detailmenu |
96 | 94 | ||
97 | @end menu | 95 | @end menu |
98 | 96 | ||
99 | @node Intro | 97 | @node Intro |
100 | @chapter Introduction | 98 | @chapter Introduction |