]> granicus.if.org Git - linux-pam/commitdiff
Relevant BUGIDs: none
authorThorsten Kukuk <kukuk@thkukuk.de>
Mon, 26 Sep 2005 12:49:52 +0000 (12:49 +0000)
committerThorsten Kukuk <kukuk@thkukuk.de>
Mon, 26 Sep 2005 12:49:52 +0000 (12:49 +0000)
Purpose of commit: bugfix

Commit summary:
---------------

Fix spec generation and creating tar archive with automake:

        * configure.in: Add doc/specs/Makefile.
        * Makefile.am: Add releasedocs rule.
        * doc/Makefile.am: Add specs subdir, remove files from specs
        directory, add rfc86.0.txt to releasedocs.
        * doc/specs/Makefile.am: New file.
        * doc/specs/formatter/parse.y: move from here ...
        * doc/specs/parse.y: ... here.
        * doc/specs/formatter/parse.lex: move from here ...
        * doc/specs/parse.lex: ... here.

ChangeLog
Makefile.am
configure.in
doc/Makefile.am
doc/specs/.cvsignore
doc/specs/Makefile.am [new file with mode: 0644]
doc/specs/formatter/Makefile [deleted file]
doc/specs/parse.lex [moved from doc/specs/formatter/parse.lex with 100% similarity]
doc/specs/parse.y [moved from doc/specs/formatter/parse.y with 96% similarity]

index 2e74e940b8568a01efdd24364e01fd26b0b066ab..f73fc84f3fff37503e3f5711fb37585dbd470df2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2005-09-26  Thorsten Kukuk  <kukuk@suse.de>
+
+       * configure.in: Add doc/specs/Makefile.
+       * Makefile.am: Add releasedocs rule.
+       * doc/Makefile.am: Add specs subdir, remove files from specs
+       directory, add rfc86.0.txt to releasedocs.
+       * doc/specs/Makefile.am: New file.
+       * doc/specs/formatter/parse.y: move from here ...
+       * doc/specs/parse.y: ... here.
+       * doc/specs/formatter/parse.lex: move from here ...
+       * doc/specs/parse.lex: ... here.
+
 2005-09-23  Tomas Mraz  <t8m@centrum.cz>
        
        * modules/pam_access/pam_access.c (from_match): Support NULL from.
index 361ca0410e146059efd6aa994514bb919eab3370..b62e26a6a2a1adb517e4747c34d5756abd5e925c 100644 (file)
@@ -14,3 +14,6 @@ EXTRA_DIST = config.rpath mkinstalldirs pgp.keys.asc CHANGELOG \
                Copyright $(M4_FILES)
 
 ACLOCAL_AMFLAGS = -I m4
+
+releasedocs: 
+       make -C doc releasedocs
index 1c8d7dd01ed761c323e6637b66b3dce8d5075c46..2a13a83bb54010117475ad91a7cd0ddd02ce0688 100644 (file)
@@ -396,4 +396,5 @@ AC_OUTPUT(Makefile libpam/Makefile libpamc/Makefile libpamc/test/Makefile \
        modules/pam_time/Makefile modules/pam_umask/Makefile \
        modules/pam_unix/Makefile modules/pam_userdb/Makefile \
        modules/pam_warn/Makefile modules/pam_wheel/Makefile \
-       modules/pam_xauth/Makefile doc/Makefile examples/Makefile)
+       modules/pam_xauth/Makefile doc/Makefile doc/specs/Makefile \
+       examples/Makefile)
index 81b24b4cf9369bf90f3e53cbf1542f6a526b6e3b..a2967461507974990b5ed0acfe24cce9a8798e61 100644 (file)
@@ -2,6 +2,8 @@
 # Copyright (c) 2005 Thorsten Kukuk <kukuk@suse.de>
 #
 
+SUBDIRS = specs
+
 FILES=pam pam_appl pam_modules
 FSRCS=$(srcdir)/pam_appl.sgml $(srcdir)/pam_modules.sgml
 
@@ -13,8 +15,7 @@ PDFFILES=pdf/pam.pdf pdf/pam_appl.pdf pdf/pam_modules.pdf
 MODULES=$(shell ls $(srcdir)/modules/*.sgml)
 
 CLEANFILES = *~ */*~ $(TEXTS) $(PSFILES) $(PDFFILES) html/pam*.html \
-       ps/missfont.log MODULES-SGML pam.sgml \
-       specs/draft-morgan-pam-current.txt
+       ps/missfont.log MODULES-SGML pam.sgml
 
 EXTRA_DIST = $(FSRCS) CREDITS NOTES figs/pam_orient.txt pdf/README \
        ps/README html/index.html txts/README man/template-man $(MANS) \
@@ -139,14 +140,12 @@ if HAVE_SGML2HTML
        done
 endif
 
-spec: specs/draft-morgan-pam.raw
-       cd specs/formatter && $(MAKE)
-       specs/formatter/padout < specs/draft-morgan-pam.raw > specs/draft-morgan-pam-current.txt
-
-releasedocs: all spec
-       tar zvfc Linux-PAM-$(VERSION)-docs.tar.gz \
+releasedocs: all
+       tar zvfc ../Linux-PAM-$(VERSION)-docs.tar.gz \
        --exclude CVS --exclude .cvsignore --exclude '.#*' \
-       html ps txts pdf specs/draft-morgan-pam-current.txt
-       tar jvfc Linux-PAM-$(VERSION)-docs.tar.bz2 \
+       --exclude README html ps txts pdf \
+       specs/draft-morgan-pam-current.txt specs/rfc86.0.txt
+       tar jvfc ../Linux-PAM-$(VERSION)-docs.tar.bz2 \
        --exclude CVS --exclude .cvsignore --exclude '.#*' \
-       html ps txts pdf specs/draft-morgan-pam-current.txt
+       --exclude README html ps txts pdf \
+       specs/draft-morgan-pam-current.txt specs/rfc86.0.txt
index bac7934f79fee98ba9fa4fa239338aee50973d5b..33cd58dcd208839da27125926dbbf7f066e38392 100644 (file)
@@ -1,3 +1,5 @@
 draft-morgan-pam-*.txt
 Makefile
 Makefile.in
+parse.c
+lex.yy.c
diff --git a/doc/specs/Makefile.am b/doc/specs/Makefile.am
new file mode 100644 (file)
index 0000000..749f0ba
--- /dev/null
@@ -0,0 +1,23 @@
+#
+# Copyright (c) 2005 Thorsten Kukuk <kukuk@suse.de>
+#
+
+CLEANFILES = draft-morgan-pam-current.txt *~
+
+EXTRA_DIST = draft-morgan-pam.raw std-agent-id.raw rfc86.0.txt lex.yy.c
+
+all: padout spec
+
+spec: draft-morgan-pam.raw
+       ./padout < draft-morgan-pam.raw > draft-morgan-pam-current.txt
+
+noinst_PROGRAMS = padout
+
+padout_SOURCES = parse.y parse.lex
+
+padout_LDADD = @LEXLIB@
+
+parse.c: lex.yy.c
+
+lex.yy.c: parse.lex
+       $(LEX) parse.lex
diff --git a/doc/specs/formatter/Makefile b/doc/specs/formatter/Makefile
deleted file mode 100644 (file)
index d73258d..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-LIBS=-lfl
-
-padout: parse.tab.o
-       $(CC) -o padout parse.tab.o $(LIBS)
-
-parse.tab.o: parse.tab.c lex.yy.c
-       $(CC) -c parse.tab.c
-
-parse.tab.c: parse.y
-       bison parse.y
-
-lex.yy.c: parse.lex
-       flex parse.lex
-
-clean:
-       rm -f parse.tab.o parse.tab.c lex.yy.c padout *~ core
similarity index 96%
rename from doc/specs/formatter/parse.y
rename to doc/specs/parse.y
index 6da47d17e9a08e08bd2668b2497d420e3bbfdf8b..9d0e2534634a1e58bd56428b75591b9d6805dbe2 100644 (file)
@@ -170,7 +170,7 @@ typedef struct node_s {
 node_t label_root = NULL;
 node_t counter_root = NULL;
 
-const char *find_key(node_t root, const char *key)
+static const char *find_key(node_t root, const char *key)
 {
     while (root) {
        int cmp = strcmp(key, root->key);
@@ -186,7 +186,7 @@ const char *find_key(node_t root, const char *key)
     return NULL;
 }
 
-node_t set_key(node_t root, const char *key, const char *value)
+static node_t set_key(node_t root, const char *key, const char *value)
 {
     if (root) {
        int cmp = strcmp(key, root->key);
@@ -287,7 +287,8 @@ char *new_counter(const char *key)
     return new;
 }
 
-main()
+int
+main(void)
 {
-    yyparse();
+    return yyparse();
 }