README.manual 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. * Overview
  2. This file is a short instruction for maintainers on how to create and
  3. publish the online version of the Tar Manual.
  4. In the sections below we assume that the tar project has been properly
  5. cloned from the git repo, bootstrapped and configured. We also assume
  6. that top-level directory of the project is the current local directory.
  7. * Creating the web manual
  8. To create the online version of the documentation, run
  9. make -C doc manual-rebuild
  10. This will create the directory doc/manual populated with the tar
  11. documentation files in various formats. If the doc/manual directory
  12. already exists, it will be removed prior to rebuilding.
  13. The command produces very copious output. We advise you to examine it
  14. closely to make sure no error messages slip your attention.
  15. For the completeness sake, there are two more Makefile goals related
  16. to the online manual:
  17. ** make -C doc clean-local
  18. Removes the doc/manual directory, if it exists.
  19. ** make -C doc manual
  20. Builds the doc/manual, unless it already exists.
  21. * CVS Repository
  22. The online tar manual[1] is a part of tar web pages[2] and is
  23. traditionally maintained in the CVS repository[3]. To publish the
  24. generated documentation, you will need first to check out tar web
  25. pages from the CVS. To do so, run
  26. cvs -z3 -d:ext:<username>@cvs.savannah.gnu.org:/web/tar co tar
  27. where <username> is your user name on Savannah. For the rest of this
  28. document we will assume that the checked out version of the tar web
  29. pages resides in the ~/websrc/tar directory.
  30. If you have already checked out the web pages, be sure to update them
  31. before publishing:
  32. cd ~/websrc/tar
  33. cvs update
  34. * Publishing
  35. To publish the created manual, change to the tar top-level directory
  36. and run:
  37. rsync -avz --exclude CVS --delete manual ~/websrc/tar
  38. This will synchronize the newly created manual pages with the content
  39. of the CVS sandbox. Then, change to the ~/websrc/tar directory and
  40. schedule any removed files for removal and any new files for addition
  41. to the repository:
  42. cvs diff --brief 2>&1 | sed -n 's/.*cannot find //p' | xargs cvs rm
  43. cvs diff --brief 2>&1 | sed -n 's/^? //p' | xargs cvs add
  44. Then commit your changes:
  45. cvs commit
  46. Once the changes are committed to CVS a job is scheduled on the server,
  47. which synchronizes them with the content of the directory served by
  48. the httpd daemon. Normally such synchronization happens within
  49. several seconds from the commit.
  50. For more information about CVS, please see its documentation[4].
  51. * References
  52. [1] https://www.gnu.org/software/tar/manual/
  53. [2] https://www.gnu.org/software/tar/
  54. [3] https://web.cvs.savannah.gnu.org/viewvc/tar/
  55. [4] https://www.nongnu.org/cvs/#documentation
  56. Local Variables:
  57. mode: outline
  58. paragraph-separate: "[ ]*$"
  59. version-control: never
  60. End: