mkf 655 B

1234567891011121314151617181920212223
  1. if co -q -rdistr2 $DESTDIR/$1/$2 >/dev/null 2>&1
  2. then
  3. chmod +w $DESTDIR/$1/$2
  4. elif co -q $DESTDIR/$1/$2 >/dev/null 2>&1
  5. then
  6. chmod +w $DESTDIR/$1/$2
  7. echo -- $1/$2 no distr2 yet
  8. elif grep LIST .distr >/dev/null 2>&1 &&
  9. (test "$2" = "`head -1 $DESTDIR/$1/LIST`") >/dev/null 2>&1 &&
  10. ${DA-false} "$1" "$2"
  11. then
  12. : Fetched library contents one by one and put them together
  13. elif cp $2 $DESTDIR/$1/$2 >/dev/null 2>&1
  14. then
  15. echo -- $1/$2 no RCS file
  16. else
  17. echo ++ $1/$2 not present
  18. fi
  19. case $2 in
  20. LIST) if (test -r $DESTDIR/$1/`head -1 $DESTDIR/$1/LIST`) >/dev/null 2>&1
  21. then echo ++ LIST files must be in .distr before their libraries!!!
  22. fi ;;
  23. esac