upd-vg-files 661 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #!/bin/sh
  2. #
  3. # upd-vg-files
  4. #
  5. if [ ! -f configure.ac ]; then
  6. echo "expecting to see configure.ac -- quitting"
  7. exit 1
  8. fi
  9. if [ ! -f Makefile.am ]; then
  10. echo "expecting to see Makefile.am -- quitting"
  11. exit 1
  12. fi
  13. if [ ! -f configure.ac-orig ]; then
  14. mv configure.ac configure.ac-orig
  15. fi
  16. if [ ! -f Makefile.am-orig ]; then
  17. mv Makefile.am Makefile.am-orig
  18. fi
  19. cp configure.ac-orig configure.ac
  20. ed -s configure.ac <<'EndOfInput'
  21. /^ none\/Makefile/i
  22. cputil/Makefile
  23. cputil/tests/Makefile
  24. cputil/mindist
  25. .
  26. wq
  27. EndOfInput
  28. cp Makefile.am-orig Makefile.am
  29. ed -s Makefile.am << 'EndOfInput'
  30. /^ none/i
  31. cputil \
  32. .
  33. wq
  34. EndOfInput
  35. # --- last line ---