cd src

if [ -z "$SAGE_LOCAL" ]; then
    echo >&2 "SAGE_LOCAL undefined database_mutation_class-1.0 exiting"
    echo >&2 "Maybe run 'sage --sh'?"
    exit 1
fi

mkdir -p $SAGE_SHARE/cluster_algebra_quiver && cp src/* $SAGE_SHARE/cluster_algebra_quiver

if [ $? -ne 0 ]; then
    echo >&2 "Error: Failed to copy the data to $SAGE_SHARE/cluster_algebra_quiver. database_mutation_class-1.0 exiting"
    exit 1
fi

