#!/bin/csh

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

set release = /opt/hydra/idl_common/moments/

co -l Snapshot_History
echo "`echo $next_version`: " >> Snapshot_History
emacs +99999 Snapshot_History
ci -u -m"$next_version" Snapshot_History
RCS_snapshot $next_version
cd $release
RCS_co_snapshot $next_version -kv
