aboutsummaryrefslogtreecommitdiff
path: root/exp
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2021-10-11 17:34:40 +0200
committern-peugnet <n.peugnet@free.fr>2021-10-11 17:34:40 +0200
commitc5b862bdd24eaae03b45ccc0bffe6b41cbe92d85 (patch)
tree7a0ba1611b3965c94380048989eeffc6d3afcbb6 /exp
parentb703ef5246014d5450a707c0f295232f830c5493 (diff)
downloaddna-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/Makefile6
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 $@