From ece828c0dc3a9635abc300a039c44f3f02301620 Mon Sep 17 00:00:00 2001 From: Michael Shigorin Date: Thu, 29 Mar 2012 02:58:24 +0300 Subject: [PATCH] image.in/Makefile: output image size too Checking the image size is one of the usual things after building it, and there's some media related testing to be ported from m-p-d as well. --- image.in/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/image.in/Makefile b/image.in/Makefile index 2a4935a3..52ba326d 100644 --- a/image.in/Makefile +++ b/image.in/Makefile @@ -61,7 +61,8 @@ imagedir: postprocess: | $(addprefix postprocess-,$(sort $(POSTPROCESS_TARGETS))) @OUTPATH="$(IMAGEDIR)/$(IMAGE_OUTFILE)"; \ - echo "** image: $$OUTPATH" >&2 && \ + OUTSIZE="`ls -lh "$$OUTPATH" | cut -f5 -d' '`"; \ + echo "** image: $$OUTPATH [$$OUTSIZE]" >&2 && \ ln -sf "$(IMAGE_OUTFILE)" "$(IMAGEDIR)/$(IMAGE_LINK)" && \ ln -sf "$${IMAGEDIR#`pwd`/}" "$(OUT_LINK)"; \ ln -sf "$(IMAGE_LINK)" $(OUT_LINK)/"$(CURRENT_LINK).$(IMAGE_TYPE)"; \