Skip to content
  • Kitware Robot's avatar
    ExternalData: Convert content links from MD5 to SHA512 · d6d05b2a
    Kitware Robot authored and Brad King's avatar Brad King committed
    Populate a script with `map_<md5>=<sha512>` variable settings and
    then run the following to convert the content link files:
        git ls-files -- '*.md5' | while read f; do
          md5="$(cat "$f")"
          sha512="$(eval echo \${map_$md5})"
          rm "$f"
          echo $sha512 > ${f%.md5}.sha512