fix size ^2^

This commit is contained in:
Mylloon 2023-05-03 17:36:24 +02:00
parent c2757c6e81
commit 53038031dd
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -128,11 +128,12 @@ distdirminified: distdir
size: $(PROGNAME)
size: SIZEFILES = $(PROGNAME) $(filter-out $(VSCFILES) COPYING,$(EXTRAFILES))
size: SIZEINFOS = ("; printf $$1; print ", soit `$(shell echo $(SIZEFILES) | sed 's/ /`, `/g')`)"
size: SIZEINFOS = ("; printf $$1; print "Ko - soit `$(shell echo $(SIZEFILES) | sed 's/ /`, `/g')`)"
size:
@$(DU) --total $(SIZEFILES) | \
$(TAIL) -n 1 | \
$(GREP) -o '[0-9]*K'| \
$(GREP) 'K' | \
$(GREP) -o '[0-9]*'| \
$(AWK) '{ \
if($$1 <= $(MAXSIZE)) { \
printf "> Taille conforme $(SIZEINFOS) \