diff options
author | n-peugnet <n.peugnet@free.fr> | 2021-10-11 17:34:40 +0200 |
---|---|---|
committer | n-peugnet <n.peugnet@free.fr> | 2021-10-11 17:34:40 +0200 |
commit | c5b862bdd24eaae03b45ccc0bffe6b41cbe92d85 (patch) | |
tree | 7a0ba1611b3965c94380048989eeffc6d3afcbb6 /exp | |
parent | b703ef5246014d5450a707c0f295232f830c5493 (diff) | |
download | dna-backup-c5b862bdd24eaae03b45ccc0bffe6b41cbe92d85.tar.gz dna-backup-c5b862bdd24eaae03b45ccc0bffe6b41cbe92d85.zip |
only count objects dir for nopack
and start redaction of details
Diffstat (limited to 'exp')
-rw-r--r-- | exp/Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/exp/Makefile b/exp/Makefile index b69b0bf..555ae67 100644 --- a/exp/Makefile +++ b/exp/Makefile @@ -53,10 +53,12 @@ $(DNADIRS:%=%.size) $(REAL).size: %.size: %.versions run cut -f1 $$i | paste -sd+ | bc >> $@; \ done -$(NOPACK).size: $(NOPACK).versions +$(NOPACK).size: $(NOPACK).versions run + rm -rf $@ prev=/dev/null; for i in $</*; do \ diff -u0 $$prev $$i \ | sed -e '1,2d' -e '/^-/d' -e 's/^+//' -e '/^@@/d' \ + | grep /objects/ \ | cut -f1 \ | paste -sd+ \ | bc \ @@ -82,7 +84,7 @@ $(NOPACK).size: $(NOPACK).versions > $@ run: $(COMMITS) $(DNA_BACKUP) $(DNA_PARAMS) | $(DATADIRS) $(NOPACK).versions $(REAL).versions - rm -rf $(DATADIRS:%=%/*) + rm -rf $(DATADIRS:%=%/*) $(DATADIRS:%=%.versions/*) ./exp.sh touch $@ |