22 lines
420 B
Bash
22 lines
420 B
Bash
#! /bin/sh
|
|
#
|
|
# %Z%%M% %I% %E% SMI
|
|
#
|
|
# look through the sccs files, find what's still out, and report
|
|
#
|
|
# exit status is number of files checked out
|
|
#
|
|
|
|
if [ ! -d SCCS/.. ]; then
|
|
echo 'Where are the SCCS_DIRECTORIES?'
|
|
exit -1;
|
|
fi
|
|
|
|
cd SCCS/..
|
|
find . -name 'p.*' -exec echo -n {} '' \; -exec cat {} \; | \
|
|
sed -e 's/^\.\///' -e 's/SCCS\/p\.//' | tee /tmp/out$$
|
|
|
|
out=`cat /tmp/out$$ | wc -l`
|
|
rm -f /tmp/out$$
|
|
exit $out
|