Browse Source

substitute version and date in man pages

this shortens the release checklist and reduces commit churn.

for the date we use configure's timestamp. this should reflect the
package's creation time and be consistent with the version.
master
Oswald Buddenhagen 5 months ago
parent
commit
6fbbcbb2c7
  1. 5
      configure.ac
  2. 2
      src/.gitignore
  3. 5
      src/Makefile.am
  4. 2
      src/mbsync.1.in
  5. 2
      src/mdconvert.1.in

5
configure.ac

@ -251,7 +251,10 @@ if test "x$have_macos_keychain" != xno; then
AC_SUBST(KEYCHAIN_LIBS, ["-Wl,-framework,Security,-framework,CoreFoundation"]) AC_SUBST(KEYCHAIN_LIBS, ["-Wl,-framework,Security,-framework,CoreFoundation"])
fi fi
AC_CONFIG_FILES([Makefile src/Makefile isync.spec]) RELEASE_DATE=`date -r $0 +%F`
AC_SUBST(RELEASE_DATE)
AC_CONFIG_FILES([Makefile src/Makefile src/mbsync.1 src/mdconvert.1 isync.spec])
AC_OUTPUT AC_OUTPUT
AC_MSG_RESULT() AC_MSG_RESULT()

2
src/.gitignore vendored

@ -1,6 +1,8 @@
/drv_proxy.inc /drv_proxy.inc
/mbsync /mbsync
/mbsync.1
/mdconvert /mdconvert
/mdconvert.1
/tst_imap_msgs /tst_imap_msgs
/tst_imap_utf7 /tst_imap_utf7
/tst_msg_cvt /tst_msg_cvt

5
src/Makefile.am

@ -27,7 +27,10 @@ mdconvert_prog = mdconvert
mdconvert_man = mdconvert.1 mdconvert_man = mdconvert.1
endif endif
in_man = mbsync.1.in mdconvert.1.in
bin_PROGRAMS = mbsync $(mdconvert_prog) bin_PROGRAMS = mbsync $(mdconvert_prog)
# don't forget to update AC_CONFIG_FILES in configure.ac!
man_MANS = mbsync.1 $(mdconvert_man) man_MANS = mbsync.1 $(mdconvert_man)
tst_imap_msgs_SOURCES = tst_imap_msgs.c imap_msgs.c util.c tst_imap_msgs_SOURCES = tst_imap_msgs.c imap_msgs.c util.c
@ -47,6 +50,6 @@ EXTRA_PROGRAMS = tst_timers
exampledir = $(docdir)/examples exampledir = $(docdir)/examples
example_DATA = mbsyncrc.sample example_DATA = mbsyncrc.sample
EXTRA_DIST = drv_proxy_gen.pl run-tests.pl $(example_DATA) $(man_MANS) EXTRA_DIST = drv_proxy_gen.pl run-tests.pl $(example_DATA) $(in_man)
CLEANFILES = drv_proxy.inc CLEANFILES = drv_proxy.inc

2
src/mbsync.1 → src/mbsync.1.in

@ -4,7 +4,7 @@
.\" .\"
.\" mbsync - mailbox synchronizer .\" mbsync - mailbox synchronizer
. .
.TH mbsync 1 "2022 Jun 16" .TH mbsync 1 @RELEASE_DATE@ "@PACKAGE_STRING@" "User Commands"
. .
.SH NAME .SH NAME
mbsync - synchronize IMAP4 and Maildir mailboxes mbsync - synchronize IMAP4 and Maildir mailboxes

2
src/mdconvert.1 → src/mdconvert.1.in

@ -3,7 +3,7 @@
.\" .\"
.\" mdconvert - Maildir mailbox UID storage scheme converter .\" mdconvert - Maildir mailbox UID storage scheme converter
. .
.TH mdconvert 1 "2004 Mar 27" .TH mdconvert 1 @RELEASE_DATE@ "@PACKAGE_STRING@" "User Commands"
. .
.SH NAME .SH NAME
mdconvert - Maildir mailbox UID storage scheme converter mdconvert - Maildir mailbox UID storage scheme converter
Loading…
Cancel
Save