From b58489d29a1898a4bff1b5da6ca4bfb14003dbfe Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Wed, 25 Apr 2012 22:27:19 -0400 Subject: scripts/library: add human_to_size This is a bash wrapper around an awk function that parses human readable sizes and returns their representative values in bytes, as a string. A small test harness is added to validate the functionality. Signed-off-by: Dave Reisner --- Makefile.am | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 7d6f3065..0010a3eb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -41,6 +41,8 @@ test-vercmp: test/util src/util test-parseopts: test/scripts scripts $(BASH_SHELL) $(top_srcdir)/test/scripts/parseopts_test.sh \ $(top_srcdir)/scripts/library/parseopts.sh + $(BASH_SHELL) $(top_srcdir)/test/scripts/human_to_size_test.sh \ + $(top_srcdir)/scripts/library/human_to_size.sh # create the pacman DB and cache directories upon install install-data-local: -- cgit v1.2.3-24-g4f1b