git.annexia.org
/
fedora-mingw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a00c35a
)
smock: sort the commandline options
author
Till Maas
<opensource@till.name>
Fri, 12 Feb 2010 15:26:27 +0000
(16:26 +0100)
committer
Richard Jones
<rjones@redhat.com>
Fri, 12 Feb 2010 15:59:58 +0000
(15:59 +0000)
smock/smock.pl
patch
|
blob
|
history
diff --git
a/smock/smock.pl
b/smock/smock.pl
index
2ac7955
..
fc7c998
100755
(executable)
--- a/
smock/smock.pl
+++ b/
smock/smock.pl
@@
-25,25
+25,25
@@
use Pod::Usage;
use File::Temp qw(tempfile);
my @arches = ();
use File::Temp qw(tempfile);
my @arches = ();
+my $chain = 0;
my @distros = ();
my @distros = ();
-my $suffix = "";
-my $localrepo = $ENV{HOME} . "/public_html/smock/yum";
my $dryrun = 0;
my $dryrun = 0;
-my $keepgoing = 0;
-my $chain = 0;
my $help = 0;
my $help = 0;
+my $keepgoing = 0;
+my $localrepo = $ENV{HOME} . "/public_html/smock/yum";
my $man = 0;
my $man = 0;
+my $suffix = "";
GetOptions (
"arch=s" => \@arches,
GetOptions (
"arch=s" => \@arches,
+ "chain" => \$chain,
"distro=s" => \@distros,
"distro=s" => \@distros,
- "suffix=s" => \$suffix,
- "localrepo=s" => \$localrepo,
"dryrun" => \$dryrun,
"dryrun" => \$dryrun,
- "keepgoing" => \$keepgoing,
- "chain" => \$chain,
"help|?" => \$help,
"help|?" => \$help,
- "man" => \$man
+ "keepgoing" => \$keepgoing,
+ "localrepo=s" => \$localrepo,
+ "man" => \$man,
+ "suffix=s" => \$suffix,
) or pod2usage (2);
pod2usage (1) if $help;
pod2usage (-exitstatus => 0, -verbose => 2) if $man;
) or pod2usage (2);
pod2usage (1) if $help;
pod2usage (-exitstatus => 0, -verbose => 2) if $man;
@@
-86,15
+86,17
@@
and optionally a web server before you can use this command.
Specify the architecture(s) to build, eg. i386, x86_64. You can
list this option several times to build several architectures.
Specify the architecture(s) to build, eg. i386, x86_64. You can
list this option several times to build several architectures.
+=item B<--chain>
+
+Don't run any commands, just print the packages in the correct
+format for chain building. See:
+L<http://fedoraproject.org/wiki/Koji/UsingKoji#Chained_builds>
+
=item B<--distro>
Specify the distribution(s) to build, eg. fedora-9, fedora-10.
You can list this option several times to build several distributions.
=item B<--distro>
Specify the distribution(s) to build, eg. fedora-9, fedora-10.
You can list this option several times to build several distributions.
-=item B<--localrepo>
-
-Local repository. Defaults to C<$HOME/public_html/smock/yum>
-
=item B<--dryrun>
Don't run any commands, just print the packages in the order
=item B<--dryrun>
Don't run any commands, just print the packages in the order
@@
-110,11
+112,9
@@
be rebuilt because of an error.
However, it is very useful.
However, it is very useful.
-=item B<--
chain
>
+=item B<--
localrepo
>
-Don't run any commands, just print the packages in the correct
-format for chain building. See:
-L<http://fedoraproject.org/wiki/Koji/UsingKoji#Chained_builds>
+Local repository. Defaults to C<$HOME/public_html/smock/yum>
=item B<--suffix>
=item B<--suffix>