ack/distr/mkf

24 lines
655 B
Plaintext
Raw Normal View History

1987-02-24 16:36:22 +00:00
if co -q -rdistr3 $DESTDIR/$1/$2 >/dev/null 2>&1
1985-04-14 23:26:24 +00:00
then
chmod +w $DESTDIR/$1/$2
elif co -q $DESTDIR/$1/$2 >/dev/null 2>&1
then
chmod +w $DESTDIR/$1/$2
1987-02-24 16:36:22 +00:00
echo -- $1/$2 no distr3 yet
1985-04-14 23:26:24 +00:00
elif grep LIST .distr >/dev/null 2>&1 &&
(test "$2" = "`head -1 $DESTDIR/$1/LIST`") >/dev/null 2>&1 &&
${DA-false} "$1" "$2"
then
: Fetched library contents one by one and put them together
elif cp $2 $DESTDIR/$1/$2 >/dev/null 2>&1
then
echo -- $1/$2 no RCS file
else
echo ++ $1/$2 not present
fi
case $2 in
LIST) if (test -r $DESTDIR/$1/`head -1 $DESTDIR/$1/LIST`) >/dev/null 2>&1
then echo ++ LIST files must be in .distr before their libraries!!!
fi ;;
esac