From: Till Maas Date: Fri, 12 Feb 2010 15:26:27 +0000 (+0100) Subject: smock: sort the commandline options X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=2edb6a8dd2ce2d25669c42b66ada3bd14cc2d3d8;p=fedora-mingw.git smock: sort the commandline options --- diff --git a/smock/smock.pl b/smock/smock.pl index 2ac7955..fc7c998 100755 --- a/smock/smock.pl +++ b/smock/smock.pl @@ -25,25 +25,25 @@ use Pod::Usage; use File::Temp qw(tempfile); my @arches = (); +my $chain = 0; my @distros = (); -my $suffix = ""; -my $localrepo = $ENV{HOME} . "/public_html/smock/yum"; my $dryrun = 0; -my $keepgoing = 0; -my $chain = 0; my $help = 0; +my $keepgoing = 0; +my $localrepo = $ENV{HOME} . "/public_html/smock/yum"; my $man = 0; +my $suffix = ""; GetOptions ( "arch=s" => \@arches, + "chain" => \$chain, "distro=s" => \@distros, - "suffix=s" => \$suffix, - "localrepo=s" => \$localrepo, "dryrun" => \$dryrun, - "keepgoing" => \$keepgoing, - "chain" => \$chain, "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; @@ -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. +=item B<--chain> + +Don't run any commands, just print the packages in the correct +format for chain building. See: +L + =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 @@ -110,11 +112,9 @@ be rebuilt because of an error. 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 +Local repository. Defaults to C<$HOME/public_html/smock/yum> =item B<--suffix>