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) (side-by-side diff)
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 @@
-ABOUT-NLS
-INSTALL
-Makefile
-Makefile.in
-acinclude.m4
-aclocal.m4
-config.h.in
-*.tar.gz
-autom4te.cache
-config.log
-configure
-config.h
-config.status
-libtool
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..71a0878
--- a/dev/null
+++ b/.gitignore
@@ -0,0 +1,27 @@
+*.a
+*.la
+*.lo
+*.o
+*.tar.*
+*~
+.deps
+.emacs*
+.gdbinit
+.libs
+ABOUT-NLS
+INSTALL
+ChangeLog
+Makefile
+Makefile.in
+aclocal.m4
+autom4te.cache
+config.h.in
+autom4te.cache
+build-aux
+config.log
+configure
+config.h
+config.status
+libtool
+m4
+stamp-h1
diff --git a/ChangeLog b/ChangeLog
deleted file mode 100644
index f5df2b6..0000000
--- a/ChangeLog
+++ b/dev/null
@@ -1,59 +0,0 @@
-2008-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
-
- * src/sql.sci (sql-catch-failure, sql-ignore-failure): New syntax.
- * src/guile-sql.h (sql_iftab): Remove erroneous declaration. This
- symbol is static in gsql_conn.c
-
-2008-05-27 Sergey Poznyakoff <gray@gnu.org.ua>
-
- * src/Makefile.am: Remove leftovers from gettext.scm.
-
-2007-12-26 Sergey Poznyakoff <gray@gnu.org.ua>
-
- * NEWS: Update.
- * configure.ac: Version number 1.1
- * COPYING: GPLv3.
- * Makefile.am: GPLv3.
- * examples/whoisd.scm: GPLv3.
- * m4/guile.m4: Require Guile v. 1.8 or later.
- * scripts/Makefile.am: GPLv3.
- * scripts/guile-doc-snarf.awk: GPLv3.
- * src/.cvsignore (gettext.inc, gettext.scm): Remove.
- * src/Makefile.am: Remove libguile-gettext.
- * src/app.h: GPLv3.
- * src/gsql_conn.c, src/gsql_lib.c, src/guile-sql.h, src/mysql.c,
- src/pgsql.c: GPLv3; Guile v.>=1.8.
- * src/gettext.sci, src/gettext.h, src/gettext.c: Remove.
- * src/gettext.scm: New file.
-
-2006-10-12 Sergey Poznyakoff <gray@gnu.org.ua>
-
- * src/mysql.c (s_mysql_free): Bugfix: mysql was freed twice
- (s_mysql_query): Fix the first argument to scm_list_2
-
-2006-10-09 Sergey Poznyakoff <gray@gnu.org.ua>
-
- * src/gsql_conn.c (num_iface): Static
- (sql_register_iface): Avoid registering the same interface twice.
-
-2005-06-26 Sergey Poznyakoff <gray@Noldor.runasimi.org>
-
- * src/app.h, src/gettext.c, src/gsql_conn.c, src/gsql_lib.c,
- src/guile-sql.h, src/mysql.c, src/pgsql.c: Throw gsql-error,
- instead of misc-error, on failure.
- * COPYING, configure.ac, examples/whoisd.scm, m4/guile.m4,
- scripts/guile-doc-snarf, scripts/guile-doc-snarf.awk, src/app.h,
- src/gettext.c, src/gettext.h, src/gettext.sci, src/gsql_conn.c,
- src/gsql_lib.c, src/guile-sql.h, src/mysql.c, src/pgsql.c,
- src/sql.sci: Changed FSF postal mail address
-
-
-2004-10-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
-
- Initial import
-
-
-Local Variables:
-mode: change-log
-version-control: never
-End:
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 @@
+2008-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
+
+ * src/sql.sci (sql-catch-failure, sql-ignore-failure): New syntax.
+ * src/guile-sql.h (sql_iftab): Remove erroneous declaration. This
+ symbol is static in gsql_conn.c
+
+2008-05-27 Sergey Poznyakoff <gray@gnu.org.ua>
+
+ * src/Makefile.am: Remove leftovers from gettext.scm.
+
+2007-12-26 Sergey Poznyakoff <gray@gnu.org.ua>
+
+ * NEWS: Update.
+ * configure.ac: Version number 1.1
+ * COPYING: GPLv3.
+ * Makefile.am: GPLv3.
+ * examples/whoisd.scm: GPLv3.
+ * m4/guile.m4: Require Guile v. 1.8 or later.
+ * scripts/Makefile.am: GPLv3.
+ * scripts/guile-doc-snarf.awk: GPLv3.
+ * src/.cvsignore (gettext.inc, gettext.scm): Remove.
+ * src/Makefile.am: Remove libguile-gettext.
+ * src/app.h: GPLv3.
+ * src/gsql_conn.c, src/gsql_lib.c, src/guile-sql.h, src/mysql.c,
+ src/pgsql.c: GPLv3; Guile v.>=1.8.
+ * src/gettext.sci, src/gettext.h, src/gettext.c: Remove.
+ * src/gettext.scm: New file.
+
+2006-10-12 Sergey Poznyakoff <gray@gnu.org.ua>
+
+ * src/mysql.c (s_mysql_free): Bugfix: mysql was freed twice
+ (s_mysql_query): Fix the first argument to scm_list_2
+
+2006-10-09 Sergey Poznyakoff <gray@gnu.org.ua>
+
+ * src/gsql_conn.c (num_iface): Static
+ (sql_register_iface): Avoid registering the same interface twice.
+
+2005-06-26 Sergey Poznyakoff <gray@Noldor.runasimi.org>
+
+ * src/app.h, src/gettext.c, src/gsql_conn.c, src/gsql_lib.c,
+ src/guile-sql.h, src/mysql.c, src/pgsql.c: Throw gsql-error,
+ instead of misc-error, on failure.
+ * COPYING, configure.ac, examples/whoisd.scm, m4/guile.m4,
+ scripts/guile-doc-snarf, scripts/guile-doc-snarf.awk, src/app.h,
+ src/gettext.c, src/gettext.h, src/gettext.sci, src/gsql_conn.c,
+ src/gsql_lib.c, src/guile-sql.h, src/mysql.c, src/pgsql.c,
+ src/sql.sci: Changed FSF postal mail address
+
+
+2004-10-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
+
+ Initial import
+
+
+Local Variables:
+mode: change-log
+version-control: never
+End:
+2004-10-09 Sergey Poznyakoff <gray@Mirddin.farlep.net>
+
+ * src/gsql_conn.c (scm_is_sql_connect): Cast tag to SCM
+ * src/gsql_lib.c: Use scm_i_long2big instead of scm_long2big.
+ * src/guile-sql.h (sql_iface.connect): Changed prototype.
+ (sql_connect_create,scm_makenum): New prototypes.
+ * src/mysql.c (s_mysql_connect): Synched with the declaration
+ of sql_iface.connect.
+ * src/pgsql.c (s_pgsql_connect): Likewise.
+
+ * Makefile.am: Remove m4
+ * configure.ac: Updated. Raised version number to 0.2
+ * m4/Makefile.am: Removed
+ * m4/guile.m4 (MU_CHECK_GUILE): Removed useless checks.
+ Add --with-guiledir option and autodetection of guile
+ install path (pkgdir).
+ AC_SUBST GUILE_SITE, GUILE_INCLUDES, and GUILE_LIBS
+ * m4/lib.m4: Quote the defun name
+ * src/Makefile.am: Use guiledir instead of pkgdatadir.
+
+2004-02-14 Sergey Poznyakoff <gray@Noldor.runasimi.org>
+
+ * src/mysql.c (s_mysql_connect): If hostname starts
+ with a slash, treat it as a path to UNIX socket.
+
+2003-10-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
+
+ * examples/whoisd.scm: Fixed parsing of command line
+ options, added options to the whoisd interface.
+
+2003-01-10 Sergey Poznyakoff <gray@Mirddin.farlep.net>
+
+ * Makefile.am: Raised preprequisite automake version to 1.7.
+ * autogen.sh: Use autoreconf
+ * configure.ac: Raised preprequisite autoconf version to 2.57.
+ Removed obsolete calls.
+ Use new MU_CHECK_GUILE macro (requires guile version >= 1.6.0)
+ Raised version number to 0.1
+ * m4/guile.m4: Updated from mailutils repository. Require at least
+ guile 1.6
+ * scripts/guile-func-name-check: Removed.
+ * scripts/guile-snarf.awk: Removed.
+ * scripts/guile-doc-snarf: Updated for verson 1.6
+ * scripts/guile-doc-snarf.awk: New file
+ * scripts/Makefile.am: Updated
+ * src/sql.scm.in: New file. Source for the guile module wrapper.
+ * src/gsql_lib.c (scm_makenum): Updated for guile >= 1.6
+ (init_util_sql,scm_init_util_sql_module): Removed.
+ (sql_init): New function.
+ * src/Makefile.am: Updated for guile >= 1.6
+
+2002-05-27 Sergey Poznyakoff
+
+ * examples/whoisd.scm: Syntax cleanup.
+
+2002-05-24 Sergey Poznyakoff
+
+ Added GNU copyleft headers. Files affected:
+
+ * configure.ac,
+ * Makefile.am,
+ * m4/Makefile.am,
+ * scripts/Makefile.am,
+ * src/Makefile.am,
+ * src/app.h,
+ * src/gsql_conn.c,
+ * src/gsql_lib.c,
+ * src/guile-sql.h,
+ * src/mysql.c,
+ * src/pgsql.c.
+
+ * examples: New directory
+ * examples/Makefile.am: new file.
+ * examples/.cvsignore: new file.
+ * examples/README: new file.
+ * examples/whoisd.scm: new file.
+
+2002-05-21 Sergey Poznyakoff
+
+ Build libguile-sql as a compiled code module, so it can
+ be directly linked in using use-modules clause.
+
+ Configuration rewritten for autoconf-2.53 / automake-1.6.
+
+ * autogen.sh: Added to repository.
+ * configure.in: Removed
+ * acconfig.h: Removed.
+ * configure.ac: new
+ * .cvsignore: new
+ * m4/.cvsignore: new
+ * src/.cvsignore: new
+ * scripts/.cvsignore: new
+ * Makefile.am: Require automake 1.6
+ * Makefile.in: Removed
+ * config.h.in: Removed
+ * m4/Makefile.in: Removed
+ * scripts/Makefile.in: Removed
+ * src/Makefile.in: Removed
+
+ * acinclude.m4: Updated
+ * m4/guile.m4: Updated
+ * m4/lib.m4: Updated
+
+ * src/Makefile.am: Fixed
+ * src/gsql_conn.c: Renamed sql-query-internal to sql-query
+ * src/gsql_lib.c: Initialize dynamic module.
+ * src/guile-sql.scm.in: Removed
+
+2001-12-05 Sergey Poznyakoff
+
+ Initial version
+
+
+
+Local Variables:
+mode: change-log
+version-control: never
+End:
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 @@
-2004-10-09 Sergey Poznyakoff <gray@Mirddin.farlep.net>
-
- * src/gsql_conn.c (scm_is_sql_connect): Cast tag to SCM
- * src/gsql_lib.c: Use scm_i_long2big instead of scm_long2big.
- * src/guile-sql.h (sql_iface.connect): Changed prototype.
- (sql_connect_create,scm_makenum): New prototypes.
- * src/mysql.c (s_mysql_connect): Synched with the declaration
- of sql_iface.connect.
- * src/pgsql.c (s_pgsql_connect): Likewise.
-
- * Makefile.am: Remove m4
- * configure.ac: Updated. Raised version number to 0.2
- * m4/Makefile.am: Removed
- * m4/guile.m4 (MU_CHECK_GUILE): Removed useless checks.
- Add --with-guiledir option and autodetection of guile
- install path (pkgdir).
- AC_SUBST GUILE_SITE, GUILE_INCLUDES, and GUILE_LIBS
- * m4/lib.m4: Quote the defun name
- * src/Makefile.am: Use guiledir instead of pkgdatadir.
-
-2004-02-14 Sergey Poznyakoff <gray@Noldor.runasimi.org>
-
- * src/mysql.c (s_mysql_connect): If hostname starts
- with a slash, treat it as a path to UNIX socket.
-
-2003-10-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
-
- * examples/whoisd.scm: Fixed parsing of command line
- options, added options to the whoisd interface.
-
-2003-01-10 Sergey Poznyakoff <gray@Mirddin.farlep.net>
-
- * Makefile.am: Raised preprequisite automake version to 1.7.
- * autogen.sh: Use autoreconf
- * configure.ac: Raised preprequisite autoconf version to 2.57.
- Removed obsolete calls.
- Use new MU_CHECK_GUILE macro (requires guile version >= 1.6.0)
- Raised version number to 0.1
- * m4/guile.m4: Updated from mailutils repository. Require at least
- guile 1.6
- * scripts/guile-func-name-check: Removed.
- * scripts/guile-snarf.awk: Removed.
- * scripts/guile-doc-snarf: Updated for verson 1.6
- * scripts/guile-doc-snarf.awk: New file
- * scripts/Makefile.am: Updated
- * src/sql.scm.in: New file. Source for the guile module wrapper.
- * src/gsql_lib.c (scm_makenum): Updated for guile >= 1.6
- (init_util_sql,scm_init_util_sql_module): Removed.
- (sql_init): New function.
- * src/Makefile.am: Updated for guile >= 1.6
-
-2002-05-27 Sergey Poznyakoff
-
- * examples/whoisd.scm: Syntax cleanup.
-
-2002-05-24 Sergey Poznyakoff
-
- Added GNU copyleft headers. Files affected:
-
- * configure.ac,
- * Makefile.am,
- * m4/Makefile.am,
- * scripts/Makefile.am,
- * src/Makefile.am,
- * src/app.h,
- * src/gsql_conn.c,
- * src/gsql_lib.c,
- * src/guile-sql.h,
- * src/mysql.c,
- * src/pgsql.c.
-
- * examples: New directory
- * examples/Makefile.am: new file.
- * examples/.cvsignore: new file.
- * examples/README: new file.
- * examples/whoisd.scm: new file.
-
-2002-05-21 Sergey Poznyakoff
-
- Build libguile-sql as a compiled code module, so it can
- be directly linked in using use-modules clause.
-
- Configuration rewritten for autoconf-2.53 / automake-1.6.
-
- * autogen.sh: Added to repository.
- * configure.in: Removed
- * acconfig.h: Removed.
- * configure.ac: new
- * .cvsignore: new
- * m4/.cvsignore: new
- * src/.cvsignore: new
- * scripts/.cvsignore: new
- * Makefile.am: Require automake 1.6
- * Makefile.in: Removed
- * config.h.in: Removed
- * m4/Makefile.in: Removed
- * scripts/Makefile.in: Removed
- * src/Makefile.in: Removed
-
- * acinclude.m4: Updated
- * m4/guile.m4: Updated
- * m4/lib.m4: Updated
-
- * src/Makefile.am: Fixed
- * src/gsql_conn.c: Renamed sql-query-internal to sql-query
- * src/gsql_lib.c: Initialize dynamic module.
- * src/guile-sql.scm.in: Removed
-
-2001-12-05 Sergey Poznyakoff
-
- Initial version
-
-
-
-Local Variables:
-mode: change-log
-version-control: never
-End:
diff --git a/Makefile.am b/Makefile.am
index 482c447..77df972 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,15 +1,46 @@
# This file is part of guile-sql.
-# Copyright (C) 2002, 2007, Sergey Poznyakoff
+# Copyright (C) 2002, 2007, 2010 Sergey Poznyakoff
#
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-AUTOMAKE_OPTIONS = gnu 1.8
-ACLOCAL_AMFLAGS = -I m4
+ACLOCAL_AMFLAGS = -I m4 -I am
SUBDIRS = src scripts examples po
+
+# Define the following variables in order to use the ChangeLog rule below:
+# prev_change_log [optional] Name of the previous ChangeLog file.
+# gen_start_date [optional] Start ChangeLog from this date.
+# changelog_dir [mandatory] Directory where to create ChangeLog
+gen_start_date = 2008-06-21
+prev_change_log = ChangeLog.cvs
+changelog_dir = .
+
+.PHONY: ChangeLog
+ChangeLog:
+ if test -d .git; then \
+ cmd=$(top_srcdir)/scripts/gitlog-to-changelog; \
+ if test -n "$(gen_start_date)"; then \
+ cmd="$$cmd --since=\"$(gen_start_date)\""; \
+ fi; \
+ $$cmd --format='%s%n%n%b%n' | \
+ sed '/<unknown>$$/d' | fmt -s > $(changelog_dir)/cl-t; \
+ if test -n "$(prev_change_log)" && test -f "$(prev_change_log)"; \
+ then \
+ echo "" >> $(changelog_dir)/cl-t; \
+ cat "$(prev_change_log)" | \
+ sed '/^Local Variables:/,/^End:/d' >> $(changelog_dir)/cl-t; \
+ fi; \
+ echo "Local Variables:" >> $(changelog_dir)/cl-t; \
+ echo "mode: change-log" >> $(changelog_dir)/cl-t; \
+ echo "version-control: never" >> $(changelog_dir)/cl-t; \
+ echo "buffer-read-only: t" >> $(changelog_dir)/cl-t; \
+ echo "End:" >> $(changelog_dir)/cl-t; \
+ rm -f $(changelog_dir)/ChangeLog; \
+ mv $(changelog_dir)/cl-t $(changelog_dir)/ChangeLog; \
+ 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
@@ -17,15 +17,16 @@ dnl with this program. If not, see <http://www.gnu.org/licenses/>. */
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
AC_INIT(gamma, 1.1, [gray@gnu.org.ua])
AC_CONFIG_SRCDIR(src/guile-sql.h)
-AC_CONFIG_AUX_DIR([scripts])
+AC_CONFIG_AUX_DIR([build-aux])
+AC_CONFIG_MACRO_DIR([m4])
AC_CANONICAL_SYSTEM
-AM_INIT_AUTOMAKE
+AM_INIT_AUTOMAKE([gnu 1.8])
AC_CONFIG_HEADERS([config.h])
dnl Checks for programs.
AC_PROG_AWK
AC_PROG_CC
AC_PROG_INSTALL
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 @@
-Makefile
-Makefile.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 @@
-codeset.m4
-gettext.m4
-glibc21.m4
-iconv.m4
-intdiv0.m4
-intmax.m4
-inttypes-pri.m4
-inttypes.m4
-inttypes_h.m4
-isc-posix.m4
-lcmessage.m4
-lib-ld.m4
-lib-link.m4
-lib-prefix.m4
-longdouble.m4
-longlong.m4
-nls.m4
-po.m4
-printf-posix.m4
-progtest.m4
-signed.m4
-size_max.m4
-stdint_h.m4
-uintmax_t.m4
-ulonglong.m4
-wchar_t.m4
-wint_t.m4
-xsize.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,8 +1,6 @@
-Makefile.in
-Makefile
config.rpath
mkinstalldirs
config.guess
config.sub
depcomp
install-sh
diff --git a/scripts/Makefile.am b/scripts/Makefile.am
index 88811c1..850d661 100644
--- a/scripts/Makefile.am
+++ b/scripts/Makefile.am
@@ -8,7 +8,8 @@
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
EXTRA_DIST = \
guile-doc-snarf\
- guile-doc-snarf.awk
+ guile-doc-snarf.awk\
+ 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 @@
+eval '(exit $?0)' && eval 'exec perl -wS "$0" ${1+"$@"}'
+ & eval 'exec perl -wS "$0" $argv:q'
+ if 0;
+# Convert git log output to ChangeLog format.
+
+my $VERSION = '2009-10-30 13:46'; # UTC
+# The definition above must lie within the first 8 lines in order
+# for the Emacs time-stamp write hook (at end) to update it.
+# If you change this file with Emacs, please let the write hook
+# do its job. Otherwise, update this string manually.
+
+# Copyright (C) 2008-2010 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+# Written by Jim Meyering
+
+use strict;
+use warnings;
+use Getopt::Long;
+use POSIX qw(strftime);
+
+(my $ME = $0) =~ s|.*/||;
+
+# use File::Coda; # http://meyering.net/code/Coda/
+END {
+ defined fileno STDOUT or return;
+ close STDOUT and return;
+ warn "$ME: failed to close standard output: $!\n";
+ $? ||= 1;
+}
+
+sub usage ($)
+{
+ my ($exit_code) = @_;
+ my $STREAM = ($exit_code == 0 ? *STDOUT : *STDERR);
+ if ($exit_code != 0)
+ {
+ print $STREAM "Try `$ME --help' for more information.\n";
+ }
+ else
+ {
+ print $STREAM <<EOF;
+Usage: $ME [OPTIONS] [ARGS]
+
+Convert git log output to ChangeLog format. If present, any ARGS
+are passed to "git log". To avoid ARGS being parsed as options to
+$ME, they may be preceded by '--'.
+
+OPTIONS:
+
+ --since=DATE convert only the logs since DATE;
+ the default is to convert all log entries.
+ --format=FMT set format string for commit subject and body;
+ see 'man git-log' for the list of format metacharacters;
+ the default is '%s%n%b%n'
+
+ --help display this help and exit
+ --version output version information and exit
+
+EXAMPLE:
+
+ $ME --since=2008-01-01 > ChangeLog
+ $ME -- -n 5 foo > last-5-commits-to-branch-foo
+
+EOF
+ }
+ exit $exit_code;
+}
+
+# If the string $S is a well-behaved file name, simply return it.
+# If it contains white space, quotes, etc., quote it, and return the new string.
+sub shell_quote($)
+{
+ my ($s) = @_;
+ if ($s =~ m![^\w+/.,-]!)
+ {
+ # Convert each single quote to '\''
+ $s =~ s/\'/\'\\\'\'/g;
+ # Then single quote the string.
+ $s = "'$s'";
+ }
+ return $s;
+}
+
+sub quoted_cmd(@)
+{
+ return join (' ', map {shell_quote $_} @_);
+}
+
+{
+ my $since_date = '1970-01-01 UTC';
+ my $format_string = '%s%n%b%n';
+ GetOptions
+ (
+ help => sub { usage 0 },
+ version => sub { print "$ME version $VERSION\n"; exit },
+ 'since=s' => \$since_date,
+ 'format=s' => \$format_string,
+ ) or usage 1;
+
+ my @cmd = (qw (git log --log-size), "--since=$since_date",
+ '--pretty=format:%ct %an <%ae>%n%n'.$format_string, @ARGV);
+ open PIPE, '-|', @cmd
+ or die ("$ME: failed to run `". quoted_cmd (@cmd) ."': $!\n"
+ . "(Is your Git too old? Version 1.5.1 or later is required.)\n");
+
+ my $prev_date_line = '';
+ while (1)
+ {
+ defined (my $in = <PIPE>)
+ or last;
+ $in =~ /^log size (\d+)$/
+ or die "$ME:$.: Invalid line (expected log size):\n$in";
+ my $log_nbytes = $1;
+
+ my $log;
+ my $n_read = read PIPE, $log, $log_nbytes;
+ $n_read == $log_nbytes
+ or die "$ME:$.: unexpected EOF\n";
+
+ my @line = split "\n", $log;
+ my $author_line = shift @line;
+ defined $author_line
+ or die "$ME:$.: unexpected EOF\n";
+ $author_line =~ /^(\d+) (.*>)$/
+ or die "$ME:$.: Invalid line "
+ . "(expected date/author/email):\n$author_line\n";
+
+ my $date_line = sprintf "%s $2\n", strftime ("%F", localtime ($1));
+ # If this line would be the same as the previous date/name/email
+ # line, then arrange not to print it.
+ if ($date_line ne $prev_date_line)
+ {
+ $prev_date_line eq ''
+ or print "\n";
+ print $date_line;
+ }
+ $prev_date_line = $date_line;
+
+ # Omit "Signed-off-by..." lines.
+ @line = grep !/^Signed-off-by: .*>$/, @line;
+
+ # If there were any lines
+ if (@line == 0)
+ {
+ warn "$ME: warning: empty commit message:\n $date_line\n";
+ }
+ else
+ {
+ # Remove leading and trailing blank lines.
+ while ($line[0] =~ /^\s*$/) { shift @line; }
+ while ($line[$#line] =~ /^\s*$/) { pop @line; }
+
+ # Prefix each non-empty line with a TAB.
+ @line = map { length $_ ? "\t$_" : '' } @line;
+
+ print "\n", join ("\n", @line), "\n";
+ }
+
+ defined ($in = <PIPE>)
+ or last;
+ $in ne "\n"
+ and die "$ME:$.: unexpected line:\n$in";
+ }
+
+ close PIPE
+ or die "$ME: error closing pipe from " . quoted_cmd (@cmd) . "\n";
+ # FIXME-someday: include $PROCESS_STATUS in the diagnostic
+}
+
+# Local Variables:
+# mode: perl
+# indent-tabs-mode: nil
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "my $VERSION = '"
+# time-stamp-format: "%:y-%02m-%02d %02H:%02M"
+# time-stamp-time-zone: "UTC"
+# time-stamp-end: "'; # UTC"
+# End:
diff --git a/src/.cvsignore b/src/.gitignore
index 822742d..b2219c8 100644
--- a/src/.cvsignore
+++ b/src/.gitignore
@@ -1,9 +1,6 @@
-Makefile.in
-Makefile
-.deps
*.x
*.doc
*.lo
.libs
*.la
guile-procedures.txt

Return to:

Send suggestions and report system problems to the System administrator.