> ${CMAKE_CURRENT_BINARY_DIR}/changelog.Debian.gz)
add_custom_target(changelog ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/changelog.Debian.gz)
+add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/mv-none-space.1.gz
+ COMMAND gzip --stdout --no-name --best ${CMAKE_CURRENT_SOURCE_DIR}/mv-none-space.1
+ > ${CMAKE_CURRENT_BINARY_DIR}/mv-none-space.1.gz)
+add_custom_target(manpage ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/mv-none-space.1.gz)
+
set(CMAKE_INSTALL_DEFAULT_DIRECTORY_PERMISSIONS
OWNER_READ
OWNER_WRITE
include(GNUInstallDirs)
install(TARGETS ${PROJECT_NAME}
DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/mv-none-space.1.gz
+ DESTINATION ${CMAKE_INSTALL_PREFIX}/share/man/man1)
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/debian/copyright
${CMAKE_CURRENT_BINARY_DIR}/changelog.Debian.gz
DESTINATION ${CMAKE_INSTALL_DOCDIR})
--- /dev/null
+.TH mv-none-space 1 2026-05-25
+
+.SH NAME
+mv-none-space - renames files with special chars and white spaces to normalized
+file name. It can revert back to special chars and white spaces.
+
+.SH SYNOPSIS
+mv-none-space <directory> [<command>]
+
+.SH COMMANDS
+.P
+.EX
+lower renames files with lower case
+point renames files without points at the end
+revert renames special chars and underscore back to with whitespaces
+.EE
+.P
\ No newline at end of file