#!/usr/bin/env bash

echo "Deprecated #19984, use sage --package fix-checksum instead"

# If any command-line arguments are present, treat them as files to be
# checksummed. If no arguments are present, all tarballs in
# $SAGE_ROOT/upstream are checksummed.
if [ $# -eq 0 ]; then
    sage --package fix-checksum
else
    for tarball in "$@" ; do
        pkg=$(sage --package name $tarball)
        sage --package fix-checksum $pkg
    done
fi
