#!/bin/sh
#
# This file should only be run automatically by make, not directly by
# the user.
#
# This script is part of the SUIF version control system.  It takes
# one argument, the label for the new version.  It adds an entry to
# the version database of the current program for the new version
# number with all the current revisions of the source files.  It then
# sets this new version to be the current one.

if (test ${1}"" = "") ; then
    echo "no version specified" 1>&2
    exit 1
fi

ver_new_version ${1}
if (test ${?} != 0) ; then
    exit ${?}
fi

ver_remove_attribute current
if (test ${?} != 0) ; then
    exit ${?}
fi

ver_set_attribute ${1} current
exit ${?}
