Files
seta75D 2e8a93c394 Init
2021-10-11 18:20:23 -03:00

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