summaryrefslogtreecommitdiff
path: root/contrib/raw/VerifyImages.sh
diff options
context:
space:
mode:
authorCraig Earls <enderw88@gmail.com>2013-01-29 13:45:44 -0700
committerCraig Earls <enderw88@gmail.com>2013-01-29 13:45:44 -0700
commit870c62bf14ec75d0bf2e951126c20747bee174f1 (patch)
tree39c0fa9e16775f2477710d6b0960146ed09f62dd /contrib/raw/VerifyImages.sh
parentc1ad213f4e197b80a0b619bb04769f807a2be645 (diff)
parentc235b59a68d04ff22a16d317e4d67b69e570a1e4 (diff)
downloadfork-ledger-870c62bf14ec75d0bf2e951126c20747bee174f1.tar.gz
fork-ledger-870c62bf14ec75d0bf2e951126c20747bee174f1.tar.bz2
fork-ledger-870c62bf14ec75d0bf2e951126c20747bee174f1.zip
Merge commit 'c235b59a68d04ff22a16d317e4d67b69e570a1e4' into kitchen-sink
Diffstat (limited to 'contrib/raw/VerifyImages.sh')
-rwxr-xr-xcontrib/raw/VerifyImages.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/contrib/raw/VerifyImages.sh b/contrib/raw/VerifyImages.sh
new file mode 100755
index 00000000..5975f7cf
--- /dev/null
+++ b/contrib/raw/VerifyImages.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+grep -h '; RECEIPT: ' \
+ *.dat \
+ */*.dat \
+ | sed 's,\W*; RECEIPT: ,,g' \
+ | tr , '\n' \
+ | sort -u \
+ | while read X
+do
+ [ -f "$X" ] \
+ && echo OK $X \
+ || echo XX $X
+done