summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2020-05-30 18:48:05 +0200
committerHelge Deller <deller@gmx.de>2020-05-30 18:48:05 +0200
commit53e0ef79f04a243dbd2a6d0a59b7fbc0ae34349d (patch)
treee44661426d035ec0f615b09b0939b91ca0ed9b24
parent6af02949ce1ef9fe5c45a1a064a0a0474616431e (diff)
downloadpalo-53e0ef79f04a243dbd2a6d0a59b7fbc0ae34349d.tar.gz
Improve palo man page
Add better description in man page, add proper version printing in palo. Suggested-by: Pierre-Elliott Bécue <peb@debian.org>
-rw-r--r--Makefile6
-rw-r--r--palo.811
-rw-r--r--palo/palo.c5
3 files changed, 13 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 7c75aaa..56cd19a 100644
--- a/Makefile
+++ b/Makefile
@@ -107,8 +107,10 @@ distclean:
cd palo && $(MAKE) distclean
ifdef HELP2MAN
-palo.8: palo/palo palo/usage.txt palo.help2man
- help2man --no-info -i palo.help2man ./palo/palo > palo.8
+palo.8: makepalo palo/usage.txt palo.help2man
+ help2man --section=8 --no-info \
+ --name="installation and management tool for the parisc bootloader" \
+ --include=palo.help2man ./palo/palo > palo.8
endif
palo.8.gz: palo.8
diff --git a/palo.8 b/palo.8
index c3a4e53..173f462 100644
--- a/palo.8
+++ b/palo.8
@@ -1,12 +1,12 @@
-.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.10.
-.TH PALO "1" "July 2019" "palo version 2.01" "User Commands"
+.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.11.
+.TH PALO "8" "Mai 2020" "palo - create and maintain bootable disks" "System Administration Utilities"
.SH NAME
-palo \- manual page for palo version 2.01
+palo \- installation and management tool for the parisc bootloader
.SH SYNOPSIS
.B palo
[\fI\,options\/\fR]
.SH DESCRIPTION
-palo version 2.01
+palo \- create and maintain bootable disks
.TP
\-?, \fB\-\-help\fR
Print this information
@@ -93,7 +93,8 @@ be loaded into the palo partition
When more than one of \fB\-I\fR, \fB\-U\fR, \fB\-s\fR and \fB\-C\fR are used, only the
last one is effective.
.PP
-http://www.parisc\-linux.org \- Wed, 17 Jan 2018 15:15:40 +0100
+palo version 2.13
+http://www.parisc\-linux.org \- Sat May 30 18:30:35 CEST 2020
palo is the installation and management tool for the parisc
bootloader, called iplboot. The size required for the iplboot binary
diff --git a/palo/palo.c b/palo/palo.c
index 7f3260e..2098fd0 100644
--- a/palo/palo.c
+++ b/palo/palo.c
@@ -744,7 +744,7 @@ main(int argc, char *argv[])
char *bootloaderfile = "/usr/share/palo/iplboot";
int init = 0;
extern const char bld_info[];
- const char gargs[] = "f:C:s:b:k:c:r:I:e:U:v?";
+ const char gargs[] = "f:C:s:b:k:c:r:I:e:U:v?V";
char *config_file = "/etc/palo.conf";
char *newargv[MAXARGS];
int newargc, format_as = 0;
@@ -757,7 +757,7 @@ main(int argc, char *argv[])
assert((unsigned long)&f.ipl_addr - (unsigned long)&f == 0xf0);
}
- fputs("palo version " PALOVERSION "\n", stdout);
+ fputs("palo - create and maintain bootable disks\n", stdout);
/* do we have a -f? */
while ((c = GETOPT(argc, argv, gargs)) != EOF)
@@ -771,6 +771,7 @@ main(int argc, char *argv[])
error(0, argv[0]);
break;
case 'V':
+ fputs("palo version " PALOVERSION "\n", stdout);
puts(bld_info);
return 0;
}