#!/bin/tcsh -f
# JLdL 19Nov06.
#
# Make the soft links to the set of files identified
# _ by a given date string in the format yy-mm-dd.
#
# Verify the required argument.
if ( "$1" == "" ) then
    echo `basename $0`: requires one argument: the date string yy-mm-dd
    exit
endif
#
# Make the links, checking for errors.
foreach fs ( root var usr )
    if ( -f $fs-$1.list ) then
	ln -sf $fs-$1.list $fs.list
    else
	echo `basename $0`: ERROR: no such file: $fs-$1.list
	exit 1
    endif
    if ( -f $fs-$1.tar.bz2 ) then
	ln -sf $fs-$1.tar.bz2 $fs.tar.bz2
    else
	echo `basename $0`: ERROR: no such file: $fs-$1.tar.bz2
	exit 1
    endif
end
