From c0e9360926d2c8c2369da09ae041b46d6556a060 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Mon, 25 May 2026 11:51:15 +0200 Subject: [PATCH] add manpage --- src/CMakeLists.txt | 7 +++++++ src/mv-none-space.1 | 17 +++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 src/mv-none-space.1 diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 24d8a6b..3beaedc 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -19,6 +19,11 @@ add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/changelog.Debian.gz > ${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 @@ -31,6 +36,8 @@ set(CMAKE_INSTALL_DEFAULT_DIRECTORY_PERMISSIONS 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}) diff --git a/src/mv-none-space.1 b/src/mv-none-space.1 new file mode 100644 index 0000000..b0837f4 --- /dev/null +++ b/src/mv-none-space.1 @@ -0,0 +1,17 @@ +.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 [] + +.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 -- 2.47.3