summaryrefslogtreecommitdiffabout
authorSergey Poznyakoff <gray@gnu.org.ua>2010-03-06 12:42:25 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2010-03-06 12:42:25 (GMT)
commitc8ec138afb7dfe52c96b7bd4e6321a5a03aca449 (patch) (unidiff)
tree3b4c76893caea72892774e133be24ca49fb41871
parent0c1dcdf36ee4b7a5faf8b874f51e84b89e68303a (diff)
downloadgamma-c8ec138afb7dfe52c96b7bd4e6321a5a03aca449.tar.gz
gamma-c8ec138afb7dfe52c96b7bd4e6321a5a03aca449.tar.bz2
Finish migration to Git.
* .cvsignore, po/.cvsignore, src/.cvsignore: Rename to .gitignore, with edits. * examples/.cvsignore: Remove. * m4/common.m4, m4/guile.m4, m4/lib.m4: Move to am (new dir). * ChangeLog, ChangeLog.guile-sql: Merge into ChangeLog.cvs * Makefile.am (AUTOMAKE_OPTIONS): Remove. (ACLOCAL_AMFLAGS): Add -I am (ChangeLog): New rule. * configure.ac (build-aux): Use as aux-dir (m4): Use as macro-dir. * scripts/Makefile.am (EXTRA_DIST): Add gitlog-to-changelog * scripts/gitlog-to-changelog: New file.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--.cvsignore14
-rw-r--r--.gitignore27
-rw-r--r--ChangeLog59
-rw-r--r--ChangeLog.cvs177
-rw-r--r--ChangeLog.guile-sql118
-rw-r--r--Makefile.am37
-rw-r--r--am/common.m4 (renamed from m4/common.m4)0
-rw-r--r--am/guile.m4 (renamed from m4/guile.m4)0
-rw-r--r--am/lib.m4 (renamed from m4/lib.m4)0
-rw-r--r--configure.ac5
-rw-r--r--examples/.cvsignore2
-rw-r--r--m4/.cvsignore28
-rw-r--r--po/.gitignore (renamed from po/.cvsignore)0
-rw-r--r--scripts/.gitignore (renamed from scripts/.cvsignore)2
-rw-r--r--scripts/Makefile.am3
-rwxr-xr-xscripts/gitlog-to-changelog191
-rw-r--r--src/.gitignore (renamed from src/.cvsignore)3
17 files changed, 434 insertions, 232 deletions
diff --git a/.cvsignore b/.cvsignore
deleted file mode 100644
index 4593f4d..0000000
--- a/.cvsignore
+++ b/dev/null
@@ -1,14 +0,0 @@
1ABOUT-NLS
2INSTALL
3Makefile
4Makefile.in
5acinclude.m4
6aclocal.m4
7config.h.in
8*.tar.gz
9autom4te.cache
10config.log
11configure
12config.h
13config.status
14libtool
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..71a0878
--- a/dev/null
+++ b/.gitignore
@@ -0,0 +1,27 @@
1*.a
2*.la
3*.lo
4*.o
5*.tar.*
6*~
7.deps
8.emacs*
9.gdbinit
10.libs
11ABOUT-NLS
12INSTALL
13ChangeLog
14Makefile
15Makefile.in
16aclocal.m4
17autom4te.cache
18config.h.in
19autom4te.cache
20build-aux
21config.log
22configure
23config.h
24config.status
25libtool
26m4
27stamp-h1
diff --git a/ChangeLog b/ChangeLog
deleted file mode 100644
index f5df2b6..0000000
--- a/ChangeLog
+++ b/dev/null
@@ -1,59 +0,0 @@
12008-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
2
3 * src/sql.sci (sql-catch-failure, sql-ignore-failure): New syntax.
4 * src/guile-sql.h (sql_iftab): Remove erroneous declaration. This
5 symbol is static in gsql_conn.c
6
72008-05-27 Sergey Poznyakoff <gray@gnu.org.ua>
8
9 * src/Makefile.am: Remove leftovers from gettext.scm.
10
112007-12-26 Sergey Poznyakoff <gray@gnu.org.ua>
12
13 * NEWS: Update.
14 * configure.ac: Version number 1.1
15 * COPYING: GPLv3.
16 * Makefile.am: GPLv3.
17 * examples/whoisd.scm: GPLv3.
18 * m4/guile.m4: Require Guile v. 1.8 or later.
19 * scripts/Makefile.am: GPLv3.
20 * scripts/guile-doc-snarf.awk: GPLv3.
21 * src/.cvsignore (gettext.inc, gettext.scm): Remove.
22 * src/Makefile.am: Remove libguile-gettext.
23 * src/app.h: GPLv3.
24 * src/gsql_conn.c, src/gsql_lib.c, src/guile-sql.h, src/mysql.c,
25 src/pgsql.c: GPLv3; Guile v.>=1.8.
26 * src/gettext.sci, src/gettext.h, src/gettext.c: Remove.
27 * src/gettext.scm: New file.
28
292006-10-12 Sergey Poznyakoff <gray@gnu.org.ua>
30
31 * src/mysql.c (s_mysql_free): Bugfix: mysql was freed twice
32 (s_mysql_query): Fix the first argument to scm_list_2
33
342006-10-09 Sergey Poznyakoff <gray@gnu.org.ua>
35
36 * src/gsql_conn.c (num_iface): Static
37 (sql_register_iface): Avoid registering the same interface twice.
38
392005-06-26 Sergey Poznyakoff <gray@Noldor.runasimi.org>
40
41 * src/app.h, src/gettext.c, src/gsql_conn.c, src/gsql_lib.c,
42 src/guile-sql.h, src/mysql.c, src/pgsql.c: Throw gsql-error,
43 instead of misc-error, on failure.
44 * COPYING, configure.ac, examples/whoisd.scm, m4/guile.m4,
45 scripts/guile-doc-snarf, scripts/guile-doc-snarf.awk, src/app.h,
46 src/gettext.c, src/gettext.h, src/gettext.sci, src/gsql_conn.c,
47 src/gsql_lib.c, src/guile-sql.h, src/mysql.c, src/pgsql.c,
48 src/sql.sci: Changed FSF postal mail address
49
50
512004-10-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52
53 Initial import
54
55
56Local Variables:
57mode: change-log
58version-control: never
59End:
diff --git a/ChangeLog.cvs b/ChangeLog.cvs
new file mode 100644
index 0000000..428ee5d
--- a/dev/null
+++ b/ChangeLog.cvs
@@ -0,0 +1,177 @@
12008-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
2
3 * src/sql.sci (sql-catch-failure, sql-ignore-failure): New syntax.
4 * src/guile-sql.h (sql_iftab): Remove erroneous declaration. This
5 symbol is static in gsql_conn.c
6
72008-05-27 Sergey Poznyakoff <gray@gnu.org.ua>
8
9 * src/Makefile.am: Remove leftovers from gettext.scm.
10
112007-12-26 Sergey Poznyakoff <gray@gnu.org.ua>
12
13 * NEWS: Update.
14 * configure.ac: Version number 1.1
15 * COPYING: GPLv3.
16 * Makefile.am: GPLv3.
17 * examples/whoisd.scm: GPLv3.
18 * m4/guile.m4: Require Guile v. 1.8 or later.
19 * scripts/Makefile.am: GPLv3.
20 * scripts/guile-doc-snarf.awk: GPLv3.
21 * src/.cvsignore (gettext.inc, gettext.scm): Remove.
22 * src/Makefile.am: Remove libguile-gettext.
23 * src/app.h: GPLv3.
24 * src/gsql_conn.c, src/gsql_lib.c, src/guile-sql.h, src/mysql.c,
25 src/pgsql.c: GPLv3; Guile v.>=1.8.
26 * src/gettext.sci, src/gettext.h, src/gettext.c: Remove.
27 * src/gettext.scm: New file.
28
292006-10-12 Sergey Poznyakoff <gray@gnu.org.ua>
30
31 * src/mysql.c (s_mysql_free): Bugfix: mysql was freed twice
32 (s_mysql_query): Fix the first argument to scm_list_2
33
342006-10-09 Sergey Poznyakoff <gray@gnu.org.ua>
35
36 * src/gsql_conn.c (num_iface): Static
37 (sql_register_iface): Avoid registering the same interface twice.
38
392005-06-26 Sergey Poznyakoff <gray@Noldor.runasimi.org>
40
41 * src/app.h, src/gettext.c, src/gsql_conn.c, src/gsql_lib.c,
42 src/guile-sql.h, src/mysql.c, src/pgsql.c: Throw gsql-error,
43 instead of misc-error, on failure.
44 * COPYING, configure.ac, examples/whoisd.scm, m4/guile.m4,
45 scripts/guile-doc-snarf, scripts/guile-doc-snarf.awk, src/app.h,
46 src/gettext.c, src/gettext.h, src/gettext.sci, src/gsql_conn.c,
47 src/gsql_lib.c, src/guile-sql.h, src/mysql.c, src/pgsql.c,
48 src/sql.sci: Changed FSF postal mail address
49
50
512004-10-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52
53 Initial import
54
55
56Local Variables:
57mode: change-log
58version-control: never
59End:
602004-10-09 Sergey Poznyakoff <gray@Mirddin.farlep.net>
61
62 * src/gsql_conn.c (scm_is_sql_connect): Cast tag to SCM
63 * src/gsql_lib.c: Use scm_i_long2big instead of scm_long2big.
64 * src/guile-sql.h (sql_iface.connect): Changed prototype.
65 (sql_connect_create,scm_makenum): New prototypes.
66 * src/mysql.c (s_mysql_connect): Synched with the declaration
67 of sql_iface.connect.
68 * src/pgsql.c (s_pgsql_connect): Likewise.
69
70 * Makefile.am: Remove m4
71 * configure.ac: Updated. Raised version number to 0.2
72 * m4/Makefile.am: Removed
73 * m4/guile.m4 (MU_CHECK_GUILE): Removed useless checks.
74 Add --with-guiledir option and autodetection of guile
75 install path (pkgdir).
76 AC_SUBST GUILE_SITE, GUILE_INCLUDES, and GUILE_LIBS
77 * m4/lib.m4: Quote the defun name
78 * src/Makefile.am: Use guiledir instead of pkgdatadir.
79
802004-02-14 Sergey Poznyakoff <gray@Noldor.runasimi.org>
81
82 * src/mysql.c (s_mysql_connect): If hostname starts
83 with a slash, treat it as a path to UNIX socket.
84
852003-10-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
86
87 * examples/whoisd.scm: Fixed parsing of command line
88 options, added options to the whoisd interface.
89
902003-01-10 Sergey Poznyakoff <gray@Mirddin.farlep.net>
91
92 * Makefile.am: Raised preprequisite automake version to 1.7.
93 * autogen.sh: Use autoreconf
94 * configure.ac: Raised preprequisite autoconf version to 2.57.
95 Removed obsolete calls.
96 Use new MU_CHECK_GUILE macro (requires guile version >= 1.6.0)
97 Raised version number to 0.1
98 * m4/guile.m4: Updated from mailutils repository. Require at least
99 guile 1.6
100 * scripts/guile-func-name-check: Removed.
101 * scripts/guile-snarf.awk: Removed.
102 * scripts/guile-doc-snarf: Updated for verson 1.6
103 * scripts/guile-doc-snarf.awk: New file
104 * scripts/Makefile.am: Updated
105 * src/sql.scm.in: New file. Source for the guile module wrapper.
106 * src/gsql_lib.c (scm_makenum): Updated for guile >= 1.6
107 (init_util_sql,scm_init_util_sql_module): Removed.
108 (sql_init): New function.
109 * src/Makefile.am: Updated for guile >= 1.6
110
1112002-05-27 Sergey Poznyakoff
112
113 * examples/whoisd.scm: Syntax cleanup.
114
1152002-05-24 Sergey Poznyakoff
116
117 Added GNU copyleft headers. Files affected:
118
119 * configure.ac,
120 * Makefile.am,
121 * m4/Makefile.am,
122 * scripts/Makefile.am,
123 * src/Makefile.am,
124 * src/app.h,
125 * src/gsql_conn.c,
126 * src/gsql_lib.c,
127 * src/guile-sql.h,
128 * src/mysql.c,
129 * src/pgsql.c.
130
131 * examples: New directory
132 * examples/Makefile.am: new file.
133 * examples/.cvsignore: new file.
134 * examples/README: new file.
135 * examples/whoisd.scm: new file.
136
1372002-05-21 Sergey Poznyakoff
138
139 Build libguile-sql as a compiled code module, so it can
140 be directly linked in using use-modules clause.
141
142 Configuration rewritten for autoconf-2.53 / automake-1.6.
143
144 * autogen.sh: Added to repository.
145 * configure.in: Removed
146 * acconfig.h: Removed.
147 * configure.ac: new
148 * .cvsignore: new
149 * m4/.cvsignore: new
150 * src/.cvsignore: new
151 * scripts/.cvsignore: new
152 * Makefile.am: Require automake 1.6
153 * Makefile.in: Removed
154 * config.h.in: Removed
155 * m4/Makefile.in: Removed
156 * scripts/Makefile.in: Removed
157 * src/Makefile.in: Removed
158
159 * acinclude.m4: Updated
160 * m4/guile.m4: Updated
161 * m4/lib.m4: Updated
162
163 * src/Makefile.am: Fixed
164 * src/gsql_conn.c: Renamed sql-query-internal to sql-query
165 * src/gsql_lib.c: Initialize dynamic module.
166 * src/guile-sql.scm.in: Removed
167
1682001-12-05 Sergey Poznyakoff
169
170 Initial version
171
172
173
174Local Variables:
175mode: change-log
176version-control: never
177End:
diff --git a/ChangeLog.guile-sql b/ChangeLog.guile-sql
deleted file mode 100644
index 965ca14..0000000
--- a/ChangeLog.guile-sql
+++ b/dev/null
@@ -1,118 +0,0 @@
12004-10-09 Sergey Poznyakoff <gray@Mirddin.farlep.net>
2
3 * src/gsql_conn.c (scm_is_sql_connect): Cast tag to SCM
4 * src/gsql_lib.c: Use scm_i_long2big instead of scm_long2big.
5 * src/guile-sql.h (sql_iface.connect): Changed prototype.
6 (sql_connect_create,scm_makenum): New prototypes.
7 * src/mysql.c (s_mysql_connect): Synched with the declaration
8 of sql_iface.connect.
9 * src/pgsql.c (s_pgsql_connect): Likewise.
10
11 * Makefile.am: Remove m4
12 * configure.ac: Updated. Raised version number to 0.2
13 * m4/Makefile.am: Removed
14 * m4/guile.m4 (MU_CHECK_GUILE): Removed useless checks.
15 Add --with-guiledir option and autodetection of guile
16 install path (pkgdir).
17 AC_SUBST GUILE_SITE, GUILE_INCLUDES, and GUILE_LIBS
18 * m4/lib.m4: Quote the defun name
19 * src/Makefile.am: Use guiledir instead of pkgdatadir.
20
212004-02-14 Sergey Poznyakoff <gray@Noldor.runasimi.org>
22
23 * src/mysql.c (s_mysql_connect): If hostname starts
24 with a slash, treat it as a path to UNIX socket.
25
262003-10-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
27
28 * examples/whoisd.scm: Fixed parsing of command line
29 options, added options to the whoisd interface.
30
312003-01-10 Sergey Poznyakoff <gray@Mirddin.farlep.net>
32
33 * Makefile.am: Raised preprequisite automake version to 1.7.
34 * autogen.sh: Use autoreconf
35 * configure.ac: Raised preprequisite autoconf version to 2.57.
36 Removed obsolete calls.
37 Use new MU_CHECK_GUILE macro (requires guile version >= 1.6.0)
38 Raised version number to 0.1
39 * m4/guile.m4: Updated from mailutils repository. Require at least
40 guile 1.6
41 * scripts/guile-func-name-check: Removed.
42 * scripts/guile-snarf.awk: Removed.
43 * scripts/guile-doc-snarf: Updated for verson 1.6
44 * scripts/guile-doc-snarf.awk: New file
45 * scripts/Makefile.am: Updated
46 * src/sql.scm.in: New file. Source for the guile module wrapper.
47 * src/gsql_lib.c (scm_makenum): Updated for guile >= 1.6
48 (init_util_sql,scm_init_util_sql_module): Removed.
49 (sql_init): New function.
50 * src/Makefile.am: Updated for guile >= 1.6
51
522002-05-27 Sergey Poznyakoff
53
54 * examples/whoisd.scm: Syntax cleanup.
55
562002-05-24 Sergey Poznyakoff
57
58 Added GNU copyleft headers. Files affected:
59
60 * configure.ac,
61 * Makefile.am,
62 * m4/Makefile.am,
63 * scripts/Makefile.am,
64 * src/Makefile.am,
65 * src/app.h,
66 * src/gsql_conn.c,
67 * src/gsql_lib.c,
68 * src/guile-sql.h,
69 * src/mysql.c,
70 * src/pgsql.c.
71
72 * examples: New directory
73 * examples/Makefile.am: new file.
74 * examples/.cvsignore: new file.
75 * examples/README: new file.
76 * examples/whoisd.scm: new file.
77
782002-05-21 Sergey Poznyakoff
79
80 Build libguile-sql as a compiled code module, so it can
81 be directly linked in using use-modules clause.
82
83 Configuration rewritten for autoconf-2.53 / automake-1.6.
84
85 * autogen.sh: Added to repository.
86 * configure.in: Removed
87 * acconfig.h: Removed.
88 * configure.ac: new
89 * .cvsignore: new
90 * m4/.cvsignore: new
91 * src/.cvsignore: new
92 * scripts/.cvsignore: new
93 * Makefile.am: Require automake 1.6
94 * Makefile.in: Removed
95 * config.h.in: Removed
96 * m4/Makefile.in: Removed
97 * scripts/Makefile.in: Removed
98 * src/Makefile.in: Removed
99
100 * acinclude.m4: Updated
101 * m4/guile.m4: Updated
102 * m4/lib.m4: Updated
103
104 * src/Makefile.am: Fixed
105 * src/gsql_conn.c: Renamed sql-query-internal to sql-query
106 * src/gsql_lib.c: Initialize dynamic module.
107 * src/guile-sql.scm.in: Removed
108
1092001-12-05 Sergey Poznyakoff
110
111 Initial version
112
113
114
115Local Variables:
116mode: change-log
117version-control: never
118End:
diff --git a/Makefile.am b/Makefile.am
index 482c447..77df972 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,5 +1,5 @@
1# This file is part of guile-sql. 1# This file is part of guile-sql.
2# Copyright (C) 2002, 2007, Sergey Poznyakoff 2# Copyright (C) 2002, 2007, 2010 Sergey Poznyakoff
3# 3#
4# This file is free software; as a special exception the author gives 4# This file is free software; as a special exception the author gives
5# unlimited permission to copy and/or distribute it, with or without 5# unlimited permission to copy and/or distribute it, with or without
@@ -9,7 +9,38 @@
9# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the 9# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
10# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 10# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11 11
12AUTOMAKE_OPTIONS = gnu 1.8 12ACLOCAL_AMFLAGS = -I m4 -I am
13ACLOCAL_AMFLAGS = -I m4
14 13
15SUBDIRS = src scripts examples po 14SUBDIRS = src scripts examples po
15
16# Define the following variables in order to use the ChangeLog rule below:
17# prev_change_log [optional] Name of the previous ChangeLog file.
18# gen_start_date [optional] Start ChangeLog from this date.
19# changelog_dir [mandatory] Directory where to create ChangeLog
20gen_start_date = 2008-06-21
21prev_change_log = ChangeLog.cvs
22changelog_dir = .
23
24.PHONY: ChangeLog
25ChangeLog:
26 if test -d .git; then \
27 cmd=$(top_srcdir)/scripts/gitlog-to-changelog; \
28 if test -n "$(gen_start_date)"; then \
29 cmd="$$cmd --since=\"$(gen_start_date)\""; \
30 fi; \
31 $$cmd --format='%s%n%n%b%n' | \
32 sed '/<unknown>$$/d' | fmt -s > $(changelog_dir)/cl-t; \
33 if test -n "$(prev_change_log)" && test -f "$(prev_change_log)"; \
34 then \
35 echo "" >> $(changelog_dir)/cl-t; \
36 cat "$(prev_change_log)" | \
37 sed '/^Local Variables:/,/^End:/d' >> $(changelog_dir)/cl-t; \
38 fi; \
39 echo "Local Variables:" >> $(changelog_dir)/cl-t; \
40 echo "mode: change-log" >> $(changelog_dir)/cl-t; \
41 echo "version-control: never" >> $(changelog_dir)/cl-t; \
42 echo "buffer-read-only: t" >> $(changelog_dir)/cl-t; \
43 echo "End:" >> $(changelog_dir)/cl-t; \
44 rm -f $(changelog_dir)/ChangeLog; \
45 mv $(changelog_dir)/cl-t $(changelog_dir)/ChangeLog; \
46 fi
diff --git a/m4/common.m4 b/am/common.m4
index f78364a..f78364a 100644
--- a/m4/common.m4
+++ b/am/common.m4
diff --git a/m4/guile.m4 b/am/guile.m4
index 33fcbff..33fcbff 100644
--- a/m4/guile.m4
+++ b/am/guile.m4
diff --git a/m4/lib.m4 b/am/lib.m4
index 73f3564..73f3564 100644
--- a/m4/lib.m4
+++ b/am/lib.m4
diff --git a/configure.ac b/configure.ac
index 1262460..7f1ee3b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -20,9 +20,10 @@ AC_PREREQ(2.59)
20 20
21AC_INIT(gamma, 1.1, [gray@gnu.org.ua]) 21AC_INIT(gamma, 1.1, [gray@gnu.org.ua])
22AC_CONFIG_SRCDIR(src/guile-sql.h) 22AC_CONFIG_SRCDIR(src/guile-sql.h)
23AC_CONFIG_AUX_DIR([scripts]) 23AC_CONFIG_AUX_DIR([build-aux])
24AC_CONFIG_MACRO_DIR([m4])
24AC_CANONICAL_SYSTEM 25AC_CANONICAL_SYSTEM
25AM_INIT_AUTOMAKE 26AM_INIT_AUTOMAKE([gnu 1.8])
26AC_CONFIG_HEADERS([config.h]) 27AC_CONFIG_HEADERS([config.h])
27 28
28dnl Checks for programs. 29dnl Checks for programs.
diff --git a/examples/.cvsignore b/examples/.cvsignore
deleted file mode 100644
index c038ed7..0000000
--- a/examples/.cvsignore
+++ b/dev/null
@@ -1,2 +0,0 @@
1Makefile
2Makefile.in \ No newline at end of file
diff --git a/m4/.cvsignore b/m4/.cvsignore
deleted file mode 100644
index 6d74ce1..0000000
--- a/m4/.cvsignore
+++ b/dev/null
@@ -1,28 +0,0 @@
1codeset.m4
2gettext.m4
3glibc21.m4
4iconv.m4
5intdiv0.m4
6intmax.m4
7inttypes-pri.m4
8inttypes.m4
9inttypes_h.m4
10isc-posix.m4
11lcmessage.m4
12lib-ld.m4
13lib-link.m4
14lib-prefix.m4
15longdouble.m4
16longlong.m4
17nls.m4
18po.m4
19printf-posix.m4
20progtest.m4
21signed.m4
22size_max.m4
23stdint_h.m4
24uintmax_t.m4
25ulonglong.m4
26wchar_t.m4
27wint_t.m4
28xsize.m4
diff --git a/po/.cvsignore b/po/.gitignore
index 1ce9065..1ce9065 100644
--- a/po/.cvsignore
+++ b/po/.gitignore
diff --git a/scripts/.cvsignore b/scripts/.gitignore
index dfa300e..ef6f584 100644
--- a/scripts/.cvsignore
+++ b/scripts/.gitignore
@@ -1,5 +1,3 @@
1Makefile.in
2Makefile
3config.rpath 1config.rpath
4mkinstalldirs 2mkinstalldirs
5config.guess 3config.guess
diff --git a/scripts/Makefile.am b/scripts/Makefile.am
index 88811c1..850d661 100644
--- a/scripts/Makefile.am
+++ b/scripts/Makefile.am
@@ -11,4 +11,5 @@
11 11
12EXTRA_DIST = \ 12EXTRA_DIST = \
13 guile-doc-snarf\ 13 guile-doc-snarf\
14 guile-doc-snarf.awk 14 guile-doc-snarf.awk\
15 gitlog-to-changelog
diff --git a/scripts/gitlog-to-changelog b/scripts/gitlog-to-changelog
new file mode 100755
index 0000000..7660af5
--- a/dev/null
+++ b/scripts/gitlog-to-changelog
@@ -0,0 +1,191 @@
1eval '(exit $?0)' && eval 'exec perl -wS "$0" ${1+"$@"}'
2 & eval 'exec perl -wS "$0" $argv:q'
3 if 0;
4# Convert git log output to ChangeLog format.
5
6my $VERSION = '2009-10-30 13:46'; # UTC
7# The definition above must lie within the first 8 lines in order
8# for the Emacs time-stamp write hook (at end) to update it.
9# If you change this file with Emacs, please let the write hook
10# do its job. Otherwise, update this string manually.
11
12# Copyright (C) 2008-2010 Free Software Foundation, Inc.
13
14# This program is free software: you can redistribute it and/or modify
15# it under the terms of the GNU General Public License as published by
16# the Free Software Foundation, either version 3 of the License, or
17# (at your option) any later version.
18
19# This program is distributed in the hope that it will be useful,
20# but WITHOUT ANY WARRANTY; without even the implied warranty of
21# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22# GNU General Public License for more details.
23
24# You should have received a copy of the GNU General Public License
25# along with this program. If not, see <http://www.gnu.org/licenses/>.
26
27# Written by Jim Meyering
28
29use strict;
30use warnings;
31use Getopt::Long;
32use POSIX qw(strftime);
33
34(my $ME = $0) =~ s|.*/||;
35
36# use File::Coda; # http://meyering.net/code/Coda/
37END {
38 defined fileno STDOUT or return;
39 close STDOUT and return;
40 warn "$ME: failed to close standard output: $!\n";
41 $? ||= 1;
42}
43
44sub usage ($)
45{
46 my ($exit_code) = @_;
47 my $STREAM = ($exit_code == 0 ? *STDOUT : *STDERR);
48 if ($exit_code != 0)
49 {
50 print $STREAM "Try `$ME --help' for more information.\n";
51 }
52 else
53 {
54 print $STREAM <<EOF;
55Usage: $ME [OPTIONS] [ARGS]
56
57Convert git log output to ChangeLog format. If present, any ARGS
58are passed to "git log". To avoid ARGS being parsed as options to
59$ME, they may be preceded by '--'.
60
61OPTIONS:
62
63 --since=DATE convert only the logs since DATE;
64 the default is to convert all log entries.
65 --format=FMT set format string for commit subject and body;
66 see 'man git-log' for the list of format metacharacters;
67 the default is '%s%n%b%n'
68
69 --help display this help and exit
70 --version output version information and exit
71
72EXAMPLE:
73
74 $ME --since=2008-01-01 > ChangeLog
75 $ME -- -n 5 foo > last-5-commits-to-branch-foo
76
77EOF
78 }
79 exit $exit_code;
80}
81
82# If the string $S is a well-behaved file name, simply return it.
83# If it contains white space, quotes, etc., quote it, and return the new string.
84sub shell_quote($)
85{
86 my ($s) = @_;
87 if ($s =~ m![^\w+/.,-]!)
88 {
89 # Convert each single quote to '\''
90 $s =~ s/\'/\'\\\'\'/g;
91 # Then single quote the string.
92 $s = "'$s'";
93 }
94 return $s;
95}
96
97sub quoted_cmd(@)
98{
99 return join (' ', map {shell_quote $_} @_);
100}
101
102{
103 my $since_date = '1970-01-01 UTC';
104 my $format_string = '%s%n%b%n';
105 GetOptions
106 (
107 help => sub { usage 0 },
108 version => sub { print "$ME version $VERSION\n"; exit },
109 'since=s' => \$since_date,
110 'format=s' => \$format_string,
111 ) or usage 1;
112
113 my @cmd = (qw (git log --log-size), "--since=$since_date",
114 '--pretty=format:%ct %an <%ae>%n%n'.$format_string, @ARGV);
115 open PIPE, '-|', @cmd
116 or die ("$ME: failed to run `". quoted_cmd (@cmd) ."': $!\n"
117 . "(Is your Git too old? Version 1.5.1 or later is required.)\n");
118
119 my $prev_date_line = '';
120 while (1)
121 {
122 defined (my $in = <PIPE>)
123 or last;
124 $in =~ /^log size (\d+)$/
125 or die "$ME:$.: Invalid line (expected log size):\n$in";
126 my $log_nbytes = $1;
127
128 my $log;
129 my $n_read = read PIPE, $log, $log_nbytes;
130 $n_read == $log_nbytes
131 or die "$ME:$.: unexpected EOF\n";
132
133 my @line = split "\n", $log;
134 my $author_line = shift @line;
135 defined $author_line
136 or die "$ME:$.: unexpected EOF\n";
137 $author_line =~ /^(\d+) (.*>)$/
138 or die "$ME:$.: Invalid line "
139 . "(expected date/author/email):\n$author_line\n";
140
141 my $date_line = sprintf "%s $2\n", strftime ("%F", localtime ($1));
142 # If this line would be the same as the previous date/name/email
143 # line, then arrange not to print it.
144 if ($date_line ne $prev_date_line)
145 {
146 $prev_date_line eq ''
147 or print "\n";
148 print $date_line;
149 }
150 $prev_date_line = $date_line;
151
152 # Omit "Signed-off-by..." lines.
153 @line = grep !/^Signed-off-by: .*>$/, @line;
154
155 # If there were any lines
156 if (@line == 0)
157 {
158 warn "$ME: warning: empty commit message:\n $date_line\n";
159 }
160 else
161 {
162 # Remove leading and trailing blank lines.
163 while ($line[0] =~ /^\s*$/) { shift @line; }
164 while ($line[$#line] =~ /^\s*$/) { pop @line; }
165
166 # Prefix each non-empty line with a TAB.
167 @line = map { length $_ ? "\t$_" : '' } @line;
168
169 print "\n", join ("\n", @line), "\n";
170 }
171
172 defined ($in = <PIPE>)
173 or last;
174 $in ne "\n"
175 and die "$ME:$.: unexpected line:\n$in";
176 }
177
178 close PIPE
179 or die "$ME: error closing pipe from " . quoted_cmd (@cmd) . "\n";
180 # FIXME-someday: include $PROCESS_STATUS in the diagnostic
181}
182
183# Local Variables:
184# mode: perl
185# indent-tabs-mode: nil
186# eval: (add-hook 'write-file-hooks 'time-stamp)
187# time-stamp-start: "my $VERSION = '"
188# time-stamp-format: "%:y-%02m-%02d %02H:%02M"
189# time-stamp-time-zone: "UTC"
190# time-stamp-end: "'; # UTC"
191# End:
diff --git a/src/.cvsignore b/src/.gitignore
index 822742d..b2219c8 100644
--- a/src/.cvsignore
+++ b/src/.gitignore
@@ -1,6 +1,3 @@
1Makefile.in
2Makefile
3.deps
4*.x 1*.x
5*.doc 2*.doc
6*.lo 3*.lo

Return to:

Send suggestions and report system problems to the System administrator.