#!/bin/sh # # This script has the ability to look into the repository # and determine the existance of a module (directory or file). # # It will return "Yes" or "No" as appropriate. # My_dir=$SRT_DIST/releases/development/Release/Scripts file=${1} filename=`basename ${1}` pack=`echo $file|cut -f1 -d'/'` repository=`${My_dir}/Find_cvs_root ${pack} | cut -f1 -d','` if [ ! -d $SRT_DIST/releases/development/${file} ] then cd $SRT_DIST/releases/development filestat="`cvs -Q -d ${repository} status ${file} 2>&1| \ grep ${filename}|tail -1`" if [ "${filestat}" = "" ] then /bin/echo "No" else /bin/echo "Yes" fi else /bin/echo "Yes" fi