]> gitweb.hhaalo.de Git - mv-none-space.git/commitdiff
add manpage
authorBastian Dehn <hhaalo@arcor.de>
Mon, 25 May 2026 09:51:15 +0000 (11:51 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Mon, 25 May 2026 09:51:59 +0000 (11:51 +0200)
src/CMakeLists.txt
src/mv-none-space.1 [new file with mode: 0644]

index 24d8a6b964e7b9fdf38ef235aeb6c1b35421cf7e..3beaedcd314ec670fb9581a08a01b0ff65606349 100644 (file)
@@ -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 (file)
index 0000000..b0837f4
--- /dev/null
@@ -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 <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