diff --git a/.gitignore b/.gitignore index 93f8e3b..3a7f38e 100644 --- a/.gitignore +++ b/.gitignore @@ -56,6 +56,11 @@ test-driver compile missing +# +# man page +# +doc/man/s3fs.1 + # # object directories # diff --git a/configure.ac b/configure.ac index cd63b59..038612c 100644 --- a/configure.ac +++ b/configure.ac @@ -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 diff --git a/doc/man/s3fs.1 b/doc/man/s3fs.1.in similarity index 99% rename from doc/man/s3fs.1 rename to doc/man/s3fs.1.in index 70b1f9b..74cbe7e 100644 --- a/doc/man/s3fs.1 +++ b/doc/man/s3fs.1.in @@ -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