2 # Create the man page from the output of the "geeqie--help" command
3 # and also create the xml file for Command Line Options
5 # This needs to be run only when the command line options change
7 command -v help2man > /dev/null
10 echo "help2man not installed"
14 command -v doclifter > /dev/null
17 echo "doclifter not installed"
21 options_file=$(mktemp)
24 Geeqie - GTK based multiformat image viewer
27 Geeqie is an interactive GTK based image viewer that supports multiple image formats,
28 zooming, panning, thumbnails and sorting images into collections.
30 Generated for version:
33 Full documentation: https://www.geeqie.org/help/GuideIndex.html
36 Please send bug reports and feedback to https://github.com/BestImageViewer/geeqie/issues
39 Copyright (C) 1999-2004 by John Ellis. Copyright (C) 2004-2021 by The Geeqie Team. Use this software at your
40 own risk! This software released under the GNU General Public License. Please read the COPYING file for more
41 information." > "$options_file"
44 help2man --no-info --include="$options_file" src/geeqie > geeqie.1
47 mv geeqie.1.xml doc/docbook/CommandLineOptions.xml