Dynamically generate dates for man page file

This commit is contained in:
Takeshi Nakatani 2022-02-23 01:42:02 +00:00 committed by Andrew Gaul
parent 232ff28cc7
commit 5452e9cb10
3 changed files with 16 additions and 2 deletions

5
.gitignore vendored
View File

@ -56,6 +56,11 @@ test-driver
compile
missing
#
# man page
#
doc/man/s3fs.1
#
# object directories
#

View File

@ -310,10 +310,19 @@ AC_COMPILE_IFELSE(
]
)
dnl ----------------------------------------------
dnl build date
dnl ----------------------------------------------
AC_SUBST([MAN_PAGE_DATE], [$(date +"%B %Y")])
dnl ----------------------------------------------
dnl output files
dnl ----------------------------------------------
AC_CONFIG_FILES(Makefile src/Makefile test/Makefile doc/Makefile)
AC_CONFIG_FILES(Makefile
src/Makefile
test/Makefile
doc/Makefile
doc/man/s3fs.1)
dnl ----------------------------------------------
dnl short commit hash

View File

@ -1,4 +1,4 @@
.TH S3FS "1" "February 2011" "S3FS" "User Commands"
.TH S3FS "1" "@MAN_PAGE_DATE@" "S3FS" "User Commands"
.SH NAME
S3FS \- FUSE-based file system backed by Amazon S3
.SH SYNOPSIS