search for: end_usage

Displaying 3 results from an estimated 3 matches for "end_usage".

2015 Nov 19
3
[PATCH] Refactor checksize.pl
...cksize.pl index 4b42327..cbca5b2 100755 --- a/mbr/checksize.pl +++ b/mbr/checksize.pl @@ -19,25 +19,34 @@ use bytes; -($file, $maxsize, $padsize) = @ARGV; +($file, $maxsize) = @ARGV; + +if (!defined($file) or $file == "--help" or $file == "-h") { + $usage = <<"END_USAGE"; +Usage: $0 file [maxsize] +If maxsize is not given it will be guessed based on filename: + - 440 bytes for mbr and gptmbr; + - 432 bytes for isohdp; + - 439 bytes for altmbr. +END_USAGE + die $usage; +} if (!defined($maxsize)) { # Defaults based on the filename if ($file =...
2015 Nov 19
1
[PATCH] Refactor checksize.pl
...mbr/checksize.pl > +++ b/mbr/checksize.pl > @@ -19,25 +19,34 @@ > > use bytes; > > -($file, $maxsize, $padsize) = @ARGV; > +($file, $maxsize) = @ARGV; > + > +if (!defined($file) or $file == "--help" or $file == "-h") { > + $usage = <<"END_USAGE"; > +Usage: $0 file [maxsize] > +If maxsize is not given it will be guessed based on filename: > + - 440 bytes for mbr and gptmbr; > + - 432 bytes for isohdp; > + - 439 bytes for altmbr. > +END_USAGE > + die $usage; > +} > > if (!defined($maxsize)) { >...
2015 Nov 19
0
[PATCH] Refactor checksize.pl
...mbr/checksize.pl > +++ b/mbr/checksize.pl > @@ -19,25 +19,34 @@ > > use bytes; > > -($file, $maxsize, $padsize) = @ARGV; > +($file, $maxsize) = @ARGV; > + > +if (!defined($file) or $file == "--help" or $file == "-h") { > + $usage = <<"END_USAGE"; > +Usage: $0 file [maxsize] > +If maxsize is not given it will be guessed based on filename: > + - 440 bytes for mbr and gptmbr; > + - 432 bytes for isohdp; > + - 439 bytes for altmbr. > +END_USAGE > + die $usage; > +} > > if (!defined($maxsize)) { >...