aboutsummaryrefslogtreecommitdiffstats
path: root/dumpdistribconf
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-09-30 12:26:02 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-09-30 12:26:02 +0000
commit1577a283c7a756da24c619c7d2977aa0334255dc (patch)
tree23bf7a8bca02c175915667d9acd4abcea3bdddd8 /dumpdistribconf
parentd54a9a4161dc3cb2b3c06bd1709d97805958a26c (diff)
downloadrpmtools-1577a283c7a756da24c619c7d2977aa0334255dc.tar
rpmtools-1577a283c7a756da24c619c7d2977aa0334255dc.tar.gz
rpmtools-1577a283c7a756da24c619c7d2977aa0334255dc.tar.bz2
rpmtools-1577a283c7a756da24c619c7d2977aa0334255dc.tar.xz
rpmtools-1577a283c7a756da24c619c7d2977aa0334255dc.zip
Don't give two meanings to -h
Diffstat (limited to 'dumpdistribconf')
-rwxr-xr-xdumpdistribconf10
1 files changed, 5 insertions, 5 deletions
diff --git a/dumpdistribconf b/dumpdistribconf
index fcb6e57..4cf570f 100755
--- a/dumpdistribconf
+++ b/dumpdistribconf
@@ -14,7 +14,7 @@ sub usage () {
my ($out, $outputtype) = (\*STDOUT, 'm');
GetOptions(
- h => sub { $outputtype = 'h' },
+ s => sub { $outputtype = 's' },
m => sub { $outputtype = 'm' },
d => sub { undef $out },
'v|version' => sub { warn "$0 version $VERSION\n"; exit 0 },
@@ -30,7 +30,7 @@ foreach (@ARGV) {
warn "Can't load configuration from $_\n";
next;
};
- if ($outputtype eq 'h') {
+ if ($outputtype eq 's') {
$d->write_hdlists($out) or warn "Can't write hdlists file\n";
} else {
$d->write_mediacfg($out) or warn "Can't write media.cfg file\n";
@@ -45,11 +45,11 @@ dumpdistribconf - dumps a media.cfg from a distribution tree
=head1 SYNOPSIS
- dumpdistribconf [-h|-m] [-d] path [path...]
+ dumpdistribconf [-s|-m] [-d] path [path...]
=head1 DESCRIPTION
-This will dump a F<media.cfg> (or an F<hdlists> file if B<-h> is
+This will dump a F<media.cfg> (or an F<hdlists> file if B<-s> is
specified) from a Mandriva Linux distribution tree. By default
it's dumped to the standard output.
@@ -57,7 +57,7 @@ it's dumped to the standard output.
=over 4
-=item B<-h>
+=item B<-s>
Dump an F<hdlists> file.