Clear case users are supposed to report when (s)he finish his(her) work using clear case.
It's annoying job to list files (s)he touched in his(her) branch.
This is script tool that lists files created in the branch.
#!/bin/bash
function do_lst(){
echo
echo "branch $1:::"
CMD="cleartool find . -branch brtype($1) -print"
FLIST=`$CMD`
for LINE in $FLIST
do
echo ${LINE%@@*}
done
}
function title(){
echo Lister in Cleartool ver 1.0 by Newton Kim
}
function help(){
echo 'USAGE:lsct {-h|branch_name} ...'
echo -e "\t-h\tThis help screen"
}
title
if [ $# -eq "0" ]
then
help
echo ERROR:No branch is specified
exit 1
fi
case $1 in
-h)
help
exit 0
;;
esac
for var in "$@"
do
do_lst $var
done