#!/bin/csh

set release = /opt/hydra/papco/scratch_pad/

if ( "$1" == "" ) then
    set next_version = `get_next_version`
    echo "get_next_version=$next_version"
else
    set next_version = $1
endif

co -l version_history
echo "`echo $next_version | sed s/_/\./`: " >> version_history
emacs +99999 version_history
ci -u -m"$next_version" version_history
RCS_snapshot $next_version
cd $release
RCS_co_snapshot $next_version -kv

exit
