#!/bin/sh
# put_cdif 1.1 (96/05/21)
# Simple utility to insert CDIF files into the Teamwork database
# Richard Beton 1996

#{{{  checks

if [ "$TWK_MODEL" = "" ]
then
    echo Error - TWK_MODEL is not defined.
    exit 1
fi

if [ "$TWK_CONFIG" = "" ]
then
    echo Error - TWK_CONFIG is not defined.
    exit 1
fi

if [ "$1" = "" ]
then
    echo No input file specified.
    exit 1
fi

#}}}  

for file in $*
do
    echo "twk_put -input $file"
    twk_put -model $TWK_MODEL -config $TWK_CONFIG -input $file
    echo
done
