From 21b05d767551100a1ed28f32db89a5a5971a6684 Mon Sep 17 00:00:00 2001
From: Michele Calgaro <michele.calgaro@yahoo.it>
Date: Thu, 30 Oct 2025 06:28:52 +0900
Subject: Restructure location of man file so that the
 'tde_conditional_add_project_docs' macro will correctly handled it during
 cmake build

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
---
 doc/Makefile.am     |  16 +----
 doc/krusader.1      | 185 ----------------------------------------------------
 doc/man/Makefile.am |   8 +++
 doc/man/krusader.1  | 185 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 194 insertions(+), 200 deletions(-)
 delete mode 100644 doc/krusader.1
 create mode 100644 doc/man/Makefile.am
 create mode 100644 doc/man/krusader.1

diff --git a/doc/Makefile.am b/doc/Makefile.am
index 291db41..748e8a4 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -1,15 +1 @@
-####### tdevelop will overwrite this part!!! (begin)##########
-
-SUBDIRS = en ru
-
-EXTRA_DIST = krusader.1 
-
-install-data-local:
-	$(mkinstalldirs) $(DESTDIR)$(mandir)/man1/
-	$(INSTALL_DATA) $(srcdir)/krusader.1 $(DESTDIR)$(mandir)/man1/krusader.1
-
-uninstall-local:
-	-rm -f $(DESTDIR)$(mandir)/man1/krusader.1
-
-####### tdevelop will overwrite this part!!! (end)############
-
+SUBDIRS = en ru man
diff --git a/doc/krusader.1 b/doc/krusader.1
deleted file mode 100644
index 2d129e3..0000000
--- a/doc/krusader.1
+++ /dev/null
@@ -1,185 +0,0 @@
-.TH krusader 1 "08 May 2006" Linux "Krusader Manpage"
-.SH "NAME"
-krusader \- advanced twin-panel file manager and ftp client for TDE
-.SH "USAGE"
-.B krusader [TQt-options] [TDE-options] [options]
-.SH "DESCRIPTION"
-Krusader is an advanced twin panel (commander style)
-file manager for TDE and other desktops in the *nix world,
-similar to Midnight or Total Commander.
-It provides all the file management features you could possibly want.
-Plus: extensive archive handling,
-mounted filesystem support, FTP, advanced search module,
-viewer/editor, directory synchronisation, file content comparisons,
-powerful batch renaming and much much more.
-It supports the following archive formats: ace, arj, bzip2, deb, 
-gzip, iso, lha, rar, rpm, tar, zip and 7-zip
-and can handle other KIOSlaves such as smb:// or fish://
-It is (almost) completely customizable, very user friendly,
-fast and looks great on your desktop! :-)
-You should give it a try.
-
-.SH "OPTIONS"
-.TP
-.B --left <\fIpath\fR>
-start left panel at <path>
-.TP
-.B --right <\fIpath\fR>
-start right panel at <path>
-.TP
-.B --profile <\fIpanel-profile\fR>
-Load <panel-profile> on startup 
-.TP
-.B --help
-show the general options
-.TP
-.B --help-all
-show the all the options
-.TP
-.B --author
-show the authors
-.TP
-.B -v, --version
-show the version
-.TP
-.B --license
-show the license
-.SH "[TQt-options]"
-"$ krusader --help-tqt"  shows the all the TQt-options
-.SH "[TDE-options]"
-"$ krusader --help-kde" shows the all the TDE-options
-.SH "EXAMPLE"
-.B $ krusader --left=/mnt/cdrom --right=ftp://downloads@myserver.net
-.TP
-.B $ krusader --left=/home,/usr,smb://workgroup.net --right=fish://myserver.net
-.TP
-.B $ krusader --profile=ftp_managment
-.SH "FILES"
-Configuration files:
-
-.I ~/.trinity/share/config/krusaderrc
-
-.I ~/.trinity/share/apps/krusader/krbookmarks.xml
-
-.I $TDEDIR/share/apps/krusader/krusaderui.rc or
-
-.I ~/.trinity/share/apps/krusader/krusaderui.rc
-
-.SH "PLATFORMS"
-All POSIX: Linux, Solaris, All BSD Platforms: FreeBSD, MacOS-X
-
-.I KDE 2.x
-
-krusader v1.01   stable but there are no planned changes.
-
-.I KDE 3.x
-
-The latest version of Krusader can be found at the Krusader website.
-
-Note:
-
-Krusader v1.01 needs KDElibs 2
-
-Krusader v1.02 - 1.40 needs KDElibs 3
-
-Krusader 1.40 prefers >= KDE 3.2
-
-Krusader v1.50 - v1.51: KDE 3.2 - KDE 3.3
-
-Krusader v1.60.0- v1.70.0: KDE 3.3 - KDE 3.4
-
-Krusader 1.70.x-1.80.x: KDE 3.4 - KDE 3.5
-
-Krusader 2.xx.x: KDE 4 the future Krusader
-
-.SH "FEATURES"
-
-OFM filemanager features.
-
-Strong keyboard orientation.
-
-Powerful internal viewer and editor.
-
-Advanced search module that can search in archives.
-     
-Supports: ace, arj, bzip2, deb, gzip, iso, lha, rar, rpm, tar, zip and 7-zip.
-
-Directory comparison and filtering.
-
-Ftp/Samba client with a connection manager with SFTP/SCP support.
-
-Synchronizer, UserActions, Embedded console. Javascript console.
-
-Compare files by content. Easy editing of file permissions. 
-
-Diskusage, Calculate occupied space. Checksum creation-verification.
-
-Fully mimetype-aware (with or without magic!).
-
-Mountmanager, Locate, Krename support.
-
-Root mode, Tabbed panels, PopUp Panel. Mouse selection modes.
-
-Profiles for: Panels, Key-bindings, Colors. 
-
-For more features read http://krusader.sourceforge.net/handbook/features.html
-
-.SH "LICENSE"
-Krusader is distributed under the terms of the GNU General Public
-
-License version 2 as published by the Free Software Foundation.
-
-See the built-in help for details on the License and the lack of warranty.
-
-The copyright for the project and its name are still held by Shie Erlich and Rafi Yanai.
-.SH "i18n"
-Krusader is translated into many languages.
-
-http://krusader.sourceforge.net/i18n.php
-
-Read the Krusader translation howto if you want translate Krusader in your native language.
-.SH "FAQ"
-The latest version of the KRUSADER FAQ can be found at the Krusader website.
-.SH "SEE ALSO"
-The Krusader Handbook, at the krusader help menu.
-
-The Krusader homepage on the World Wide Web:
-
-http://krusader.sourceforge.net
-.fi
-.SH "AUTHORS"
-
-Krusader is developed by a dedicated team of individuals, known as the Krusader Krew.
-
-Shie Erlich, author [erlich {*} users {.} sourceforge {.} net]
-
-Rafi Yanai, author [yanai {*} users {.} sourceforge {.} net]
-
-Dirk Eschler, Webmaster and i18n coordinator [deschler {*} users {.} sourceforge {.} net]
-
-Csaba Karai, Developer [ckarai {*} users {.} sourceforge {.} net]
-
-Heiner Eichmann, Developer [h {.} eichmann {*} gmx.de]
-
-Jonas Baehr, Developer [jonas.baehr {*} web.de]
-
-Frank Schoolmeesters, Documentation & Marketing Coordinator [frank_schoolmeesters {*} yahoo {.} com]
-
-Richard Holt, Documentation & Proofing [richard {.} holt {*} gmail {.} com]
-
-Matej Urbancic, Marketing & Product Research [matej {*} amis {.} net]
-
-The project is written using TDevelop and TQt Designer.
-
-.SH "BUGS"
-See the TODO file in the distribution for information on what remains to be done.
-
-.B Notice: if you've got bugs to report, please use the krusader website, and
-
-.B not KDE's bugzilla (bugs.kde.org).
-
-For fixes, patches and comments use the krusader forum or mail to
-
-[krusader {*} users {.} sourceforge {.} net].
-
-Krusader Krew
diff --git a/doc/man/Makefile.am b/doc/man/Makefile.am
new file mode 100644
index 0000000..e1d8c01
--- /dev/null
+++ b/doc/man/Makefile.am
@@ -0,0 +1,8 @@
+EXTRA_DIST = krusader.1 
+
+install-data-local:
+	$(mkinstalldirs) $(DESTDIR)$(mandir)/man1/
+	$(INSTALL_DATA) $(srcdir)/krusader.1 $(DESTDIR)$(mandir)/man1/krusader.1
+
+uninstall-local:
+	-rm -f $(DESTDIR)$(mandir)/man1/krusader.1
diff --git a/doc/man/krusader.1 b/doc/man/krusader.1
new file mode 100644
index 0000000..2d129e3
--- /dev/null
+++ b/doc/man/krusader.1
@@ -0,0 +1,185 @@
+.TH krusader 1 "08 May 2006" Linux "Krusader Manpage"
+.SH "NAME"
+krusader \- advanced twin-panel file manager and ftp client for TDE
+.SH "USAGE"
+.B krusader [TQt-options] [TDE-options] [options]
+.SH "DESCRIPTION"
+Krusader is an advanced twin panel (commander style)
+file manager for TDE and other desktops in the *nix world,
+similar to Midnight or Total Commander.
+It provides all the file management features you could possibly want.
+Plus: extensive archive handling,
+mounted filesystem support, FTP, advanced search module,
+viewer/editor, directory synchronisation, file content comparisons,
+powerful batch renaming and much much more.
+It supports the following archive formats: ace, arj, bzip2, deb, 
+gzip, iso, lha, rar, rpm, tar, zip and 7-zip
+and can handle other KIOSlaves such as smb:// or fish://
+It is (almost) completely customizable, very user friendly,
+fast and looks great on your desktop! :-)
+You should give it a try.
+
+.SH "OPTIONS"
+.TP
+.B --left <\fIpath\fR>
+start left panel at <path>
+.TP
+.B --right <\fIpath\fR>
+start right panel at <path>
+.TP
+.B --profile <\fIpanel-profile\fR>
+Load <panel-profile> on startup 
+.TP
+.B --help
+show the general options
+.TP
+.B --help-all
+show the all the options
+.TP
+.B --author
+show the authors
+.TP
+.B -v, --version
+show the version
+.TP
+.B --license
+show the license
+.SH "[TQt-options]"
+"$ krusader --help-tqt"  shows the all the TQt-options
+.SH "[TDE-options]"
+"$ krusader --help-kde" shows the all the TDE-options
+.SH "EXAMPLE"
+.B $ krusader --left=/mnt/cdrom --right=ftp://downloads@myserver.net
+.TP
+.B $ krusader --left=/home,/usr,smb://workgroup.net --right=fish://myserver.net
+.TP
+.B $ krusader --profile=ftp_managment
+.SH "FILES"
+Configuration files:
+
+.I ~/.trinity/share/config/krusaderrc
+
+.I ~/.trinity/share/apps/krusader/krbookmarks.xml
+
+.I $TDEDIR/share/apps/krusader/krusaderui.rc or
+
+.I ~/.trinity/share/apps/krusader/krusaderui.rc
+
+.SH "PLATFORMS"
+All POSIX: Linux, Solaris, All BSD Platforms: FreeBSD, MacOS-X
+
+.I KDE 2.x
+
+krusader v1.01   stable but there are no planned changes.
+
+.I KDE 3.x
+
+The latest version of Krusader can be found at the Krusader website.
+
+Note:
+
+Krusader v1.01 needs KDElibs 2
+
+Krusader v1.02 - 1.40 needs KDElibs 3
+
+Krusader 1.40 prefers >= KDE 3.2
+
+Krusader v1.50 - v1.51: KDE 3.2 - KDE 3.3
+
+Krusader v1.60.0- v1.70.0: KDE 3.3 - KDE 3.4
+
+Krusader 1.70.x-1.80.x: KDE 3.4 - KDE 3.5
+
+Krusader 2.xx.x: KDE 4 the future Krusader
+
+.SH "FEATURES"
+
+OFM filemanager features.
+
+Strong keyboard orientation.
+
+Powerful internal viewer and editor.
+
+Advanced search module that can search in archives.
+     
+Supports: ace, arj, bzip2, deb, gzip, iso, lha, rar, rpm, tar, zip and 7-zip.
+
+Directory comparison and filtering.
+
+Ftp/Samba client with a connection manager with SFTP/SCP support.
+
+Synchronizer, UserActions, Embedded console. Javascript console.
+
+Compare files by content. Easy editing of file permissions. 
+
+Diskusage, Calculate occupied space. Checksum creation-verification.
+
+Fully mimetype-aware (with or without magic!).
+
+Mountmanager, Locate, Krename support.
+
+Root mode, Tabbed panels, PopUp Panel. Mouse selection modes.
+
+Profiles for: Panels, Key-bindings, Colors. 
+
+For more features read http://krusader.sourceforge.net/handbook/features.html
+
+.SH "LICENSE"
+Krusader is distributed under the terms of the GNU General Public
+
+License version 2 as published by the Free Software Foundation.
+
+See the built-in help for details on the License and the lack of warranty.
+
+The copyright for the project and its name are still held by Shie Erlich and Rafi Yanai.
+.SH "i18n"
+Krusader is translated into many languages.
+
+http://krusader.sourceforge.net/i18n.php
+
+Read the Krusader translation howto if you want translate Krusader in your native language.
+.SH "FAQ"
+The latest version of the KRUSADER FAQ can be found at the Krusader website.
+.SH "SEE ALSO"
+The Krusader Handbook, at the krusader help menu.
+
+The Krusader homepage on the World Wide Web:
+
+http://krusader.sourceforge.net
+.fi
+.SH "AUTHORS"
+
+Krusader is developed by a dedicated team of individuals, known as the Krusader Krew.
+
+Shie Erlich, author [erlich {*} users {.} sourceforge {.} net]
+
+Rafi Yanai, author [yanai {*} users {.} sourceforge {.} net]
+
+Dirk Eschler, Webmaster and i18n coordinator [deschler {*} users {.} sourceforge {.} net]
+
+Csaba Karai, Developer [ckarai {*} users {.} sourceforge {.} net]
+
+Heiner Eichmann, Developer [h {.} eichmann {*} gmx.de]
+
+Jonas Baehr, Developer [jonas.baehr {*} web.de]
+
+Frank Schoolmeesters, Documentation & Marketing Coordinator [frank_schoolmeesters {*} yahoo {.} com]
+
+Richard Holt, Documentation & Proofing [richard {.} holt {*} gmail {.} com]
+
+Matej Urbancic, Marketing & Product Research [matej {*} amis {.} net]
+
+The project is written using TDevelop and TQt Designer.
+
+.SH "BUGS"
+See the TODO file in the distribution for information on what remains to be done.
+
+.B Notice: if you've got bugs to report, please use the krusader website, and
+
+.B not KDE's bugzilla (bugs.kde.org).
+
+For fixes, patches and comments use the krusader forum or mail to
+
+[krusader {*} users {.} sourceforge {.} net].
+
+Krusader Krew
-- 
cgit v1.2.3

