Skip to content

Commit

Permalink
add little script to generate checksums
Browse files Browse the repository at this point in the history
  • Loading branch information
moustakas committed Dec 20, 2023
1 parent 0ce8db4 commit 93150e6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions bin/generate-checksums
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash -l

# Generate checksums from the top level of a production / release.

for f in $(find healpix -type f); do
d=$(dirname ${f})
b=$(basename ${f})
s=edr_vac_edr_fastspecfit_fuji_v3.1_$(tr '/' '_' <<<${d}).sha256sum
[[ -f ${d}/${s} ]] || touch ${d}/${s}
echo "(cd ${d}; sha256sum ${b} >> ${s})"
(cd ${d}; sha256sum ${b} >> ${s})
done

0 comments on commit 93150e6

Please sign in to comment.