Displaying 3 results from an estimated 3 matches for "cbca5b2".
Did you mean:
bb0a5b2
2015 Nov 19
3
[PATCH] Refactor checksize.pl
...d basic tests for this script.
---
mbr/checksize.pl | 27 ++++++++++++++++++---------
mbr/checksize_test.sh | 22 ++++++++++++++++++++++
2 files changed, 40 insertions(+), 9 deletions(-)
create mode 100644 mbr/checksize_test.sh
diff --git a/mbr/checksize.pl b/mbr/checksize.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...
2015 Nov 19
1
[PATCH] Refactor checksize.pl
...> mbr/checksize.pl | 27 ++++++++++++++++++---------
> mbr/checksize_test.sh | 22 ++++++++++++++++++++++
> 2 files changed, 40 insertions(+), 9 deletions(-)
> create mode 100644 mbr/checksize_test.sh
>
> diff --git a/mbr/checksize.pl b/mbr/checksize.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") {
> + $usa...
2015 Nov 19
0
[PATCH] Refactor checksize.pl
...> mbr/checksize.pl | 27 ++++++++++++++++++---------
> mbr/checksize_test.sh | 22 ++++++++++++++++++++++
> 2 files changed, 40 insertions(+), 9 deletions(-)
> create mode 100644 mbr/checksize_test.sh
>
> diff --git a/mbr/checksize.pl b/mbr/checksize.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") {
> + $usa...