aboutsummaryrefslogtreecommitdiff
path: root/exp/exp.sh
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2021-09-30 19:06:33 +0200
committern-peugnet <n.peugnet@free.fr>2021-09-30 19:06:33 +0200
commitcda8a65123b95b1c59fd43cec8a0863b484c5deb (patch)
treec4849b9b21dd475b574302043e1b83ddab85841c /exp/exp.sh
parent3e88cb43928e2368acd669913c3bf32693174764 (diff)
downloaddna-backup-cda8a65123b95b1c59fd43cec8a0863b484c5deb.tar.gz
dna-backup-cda8a65123b95b1c59fd43cec8a0863b484c5deb.zip
move script in its own file for comfort
and start making some stats
Diffstat (limited to 'exp/exp.sh')
-rwxr-xr-xexp/exp.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/exp/exp.sh b/exp/exp.sh
new file mode 100755
index 0000000..8cc1fa4
--- /dev/null
+++ b/exp/exp.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+commits_file=$1
+repo_path=$2
+
+temp_templ="dna-backup-bench-XXXXX"
+mktemp="mktemp --tmpdir -d $temp_templ"
+
+temp=$($mktemp)
+echo temp dir: $temp >&2
+
+cat $commits_file | while read i
+do
+ hash=$(echo "$i" | cut -f1)
+ git -C $repo_path checkout $hash
+ ../dna-backup commit -v 2 $repo_path $temp
+done
+du -bad 2 $temp