-cmake_minimum_required(VERSION 2.8)
+cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
project(fuse_xattrs C)
set(FUSE_XATTRS_VERSION_MAJOR 0)
"${PROJECT_BINARY_DIR}"
)
+configure_file (
+ "${PROJECT_SOURCE_DIR}/fuse_xattrs.1.in"
+ "${PROJECT_BINARY_DIR}/fuse_xattrs.1"
+)
+
# Check xattr headers
include (CheckIncludeFile)
check_include_file (sys/xattr.h HAVE_SYS_XATTR_H)
)
install (TARGETS fuse_xattrs DESTINATION bin)
+install (
+ FILES ${CMAKE_CURRENT_BINARY_DIR}/fuse_xattrs.1
+ DESTINATION man/man1
+ COMPONENT doc
+)
enable_testing()
configure_file(run_tests.sh run_tests.sh COPYONLY)
-.TH FUSE_XATTRS "1" "February 2017" "FUSE_XATTRS version 0.2" "User Commands"
+.TH FUSE_XATTRS "1" "February 2017" "FUSE_XATTRS version @FUSE_XATTRS_VERSION_MAJOR@.@FUSE_XATTRS_VERSION_MINOR@" "User Commands"
.SH NAME
-FUSE_XATTRS \- Add xattrs support using sidecar files
+FUSE_XATTRS \- Filesystem that add xattrs support using sidecar files
.SH SYNOPSIS
.SS mounting
.TP
\fBfuse_xattrs\fP \fBsource_dir\fP \fBmountpoint\fP
.SS unmounting
.TP
-\fB__UNMOUNT_COMMAND__ mountpoint\fP
+\fBfusermount -u mountpoint\fP
.SH DESCRIPTION
FUSE_XATTRS is a way to add xattrs support to any filesystem. The attributes are stored in sidecar files.
.PP
.PD
+.SH "EXAMPLES"
+.TP
+Add xattrs support to \fB/mnt/nfs/data\fP by mounting it on \fB/mnt/nfs_data_with_xattrs\fP
+\fBfuse_xattrs /mnt/nfs/data /mnt/nfs_data_with_xattrs\fP
+.LP
.SH "AUTHORS"
.LP
FUSE_XATTRS has been written by Felipe Barriga Richards <felipe {at} felipebarriga.cl>.