aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2021-02-07 16:25:39 +0200
committerSergey Poznyakoff <gray@gnu.org>2021-02-07 16:28:03 +0200
commite246e983fc7f71d349bedb119a9c584581af6772 (patch)
treeec3d43ca9ec2e643f071785f4321620afbebf9d4
parentdf55dc124fc570ba2fa4f7fd54df258ff57a8559 (diff)
downloadwyslij-po-e246e983fc7f71d349bedb119a9c584581af6772.tar.gz
wyslij-po-e246e983fc7f71d349bedb119a9c584581af6772.tar.bz2
Finish transition from svn to git
* ChangeLog: Rename to ChangeLog.svn * Makefile.am: New rule to build ChangeLog from git log output. * README-hacking: Change bootstrapping instructions. * bootstrap: New file. * doc/wyslij-po.texi: Minor changes
-rw-r--r--ChangeLog.svn (renamed from ChangeLog)2
-rw-r--r--Makefile.am9
-rw-r--r--README-hacking5
-rwxr-xr-xbootstrap15
-rw-r--r--doc/wyslij-po.texi6
-rw-r--r--git2chg.awk75
6 files changed, 108 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog.svn
index 660952d..ab9bfae 100644
--- a/ChangeLog
+++ b/ChangeLog.svn
@@ -5,6 +5,8 @@
* src/po.c (po_header): Don't handle single quotes. Leave
double-quote handling to mu_wordsplit.
+ Drop gnulib dependencies; use mailutils functions
+
2018-02-02 Sergey Poznyakoff <gray@gnu.org.ua>
Version 3.2
diff --git a/Makefile.am b/Makefile.am
index 385fe41..8791fca 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -16,3 +16,12 @@
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = src doc po
+
+gen_start_date = 2021-02-06
+
+.PHONY: ChangeLog
+ChangeLog:
+ $(AM_V_GEN)if test -d .git; then \
+ git log --pretty='format:%ct %an <%ae>%n%n%s%n%n%b%n' | \
+ awk -vsince=$(gen_start_date) -vappend=ChangeLog.svn -f $(top_srcdir)/git2chg.awk > ChangeLog; \
+ fi
diff --git a/README-hacking b/README-hacking
index 560c3c7..fcc6d8b 100644
--- a/README-hacking
+++ b/README-hacking
@@ -28,7 +28,10 @@ build, which are extracted from other source packages:
2. Run
- autoreconf -f -i -s
+ ./bootstrap
+
+Then proceed to building the package as discussed in README and
+INSTALL files.
^L
* Copyright information:
diff --git a/bootstrap b/bootstrap
new file mode 100755
index 0000000..1bce04f
--- /dev/null
+++ b/bootstrap
@@ -0,0 +1,15 @@
+#!/bin/sh
+set -e
+podir=po
+
+echo "Updating po files"
+rsync --delete --include '*.po' --exclude '*' -Lrtvz \
+ 'translationproject.org::tp/latest/wyslij-po/' $podir
+find $po -mindepth 1 -maxdepth 1 -name '*.po' | sed -e 's|.*/||' -e 's|\.po$||' > $podir/LINGUAS
+
+echo "Bootstrapping the project"
+autoreconf -f -i -s
+if [ ! -d $porefdir ]; then
+ mkdir $porefdir
+fi
+
diff --git a/doc/wyslij-po.texi b/doc/wyslij-po.texi
index 4ed44dd..a855051 100644
--- a/doc/wyslij-po.texi
+++ b/doc/wyslij-po.texi
@@ -103,12 +103,12 @@ GNU gettext manual}).
@cindex Translation Project
@cindex @acronym{TP}
- When a translator finishes a given @acronym{PO} file, he submits it via
+ When translator finishes writing a @acronym{PO} file, he submits it via
electronic mail to the @dfn{free Translation Project}
(@uref{@value{TPURL}}), or @acronym{TP} for short,
which acts as a repository for the existing translations. It is from
the Translation Project that maintainers download @acronym{PO} files for
-inclusion into their project while preparing them for the release.
+inclusion into their projects, when preparing them for the release.
There are several ways to submit a translation. First, it can, of
course, be submitted manually. Secondly, you can use the @kbd{M}
@@ -442,7 +442,7 @@ the mailer location sets the full file name of the sendmail-compatible
sendmail:/usr/sbin/sendmail
@end example
-A special form of a sendmail @acronym{URL}, consisting of protocol
+A special form of sendmail @acronym{URL}, consisting of protocol
specification only (@samp{sendmail:}) is also allowed. It means
``use the sendmail binary from the @code{_PATH_SENDMAIL}
macro in your @file{/usr/include/paths.h} file''. This is the default
diff --git a/git2chg.awk b/git2chg.awk
new file mode 100644
index 0000000..254bb02
--- /dev/null
+++ b/git2chg.awk
@@ -0,0 +1,75 @@
+# This file is part of grecs
+# Copyright (C) 2007-2016 Sergey Poznyakoff
+#
+# Grecs 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, or (at your option)
+# any later version.
+#
+# Grecs 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 Grecs. If not, see <http://www.gnu.org/licenses/>.
+
+BEGIN {
+ if (since)
+ split(since,since_a,"-")
+}
+
+function timeok(t, a) {
+ if (!since)
+ return 1
+ split(t,a,"-")
+ if (a[1] < since_a[1])
+ return 0
+ if (a[1] > since_a[1])
+ return 1
+ if (a[2] < since_a[2])
+ return 0
+ if (a[2] > since_a[2])
+ return 1
+ return a[3] > since_a[3]
+}
+
+/^[0-9]+ .* +<[^>]+>/ {
+ s = strftime("%F", $1)
+ if (!timeok(s))
+ exit
+ sub(/^[0-9]+ +/,"")
+ if (s == datestr && author == $0)
+ next
+ datestr = s
+ author = $0
+ if (runlen) { runlen = 0; print "" }
+ printf("%s %s\n", datestr, author)
+ next
+}
+/^Signed-off-by:/ { next }
+/^<unknown>$/ { next }
+NF==0 {
+ runlen++
+ next
+}
+{ if (runlen) { runlen = 0; print "" }
+ print "\t" $0 }
+
+END {
+ if (append) {
+ print ""
+ while ((getline < append) > 0) {
+ if (match($0, /^Local *Variables:/))
+ break
+ print
+ }
+ }
+ print "\f"
+ # Make sure Emacs won't recognize this line:
+ print "Local", "Variables:"
+ print "mode: change-log"
+ print "version-control: never"
+ print "buffer-read-only: t"
+ print "End:"
+}

Return to:

Send suggestions and report system problems to the System administrator.