Template for DocBlock and svn:keywords


/ Published in: SVN
Save to your folder(s)

Substitute and update keywords like $HeadURL$, $Revision$, etc. in a file on every commit to subversion repos.

1. Set svn:keywords on repos:
$ svn propset --recursive svn:keywords 'HeadURL Revision LastChangedBy Date' /path/to/repo

2. Use this source in your file.


Copy this code and paste it in your HTML
  1. /**
  2. * Short description for file.
  3. *
  4. * Long description for file
  5. *
  6. * PHP 5
  7. *
  8. * Copyright (c) 2007, Company Name
  9. * Street address
  10. * City, State, Zip
  11. *
  12. *
  13. * @filesource $HeadURL$
  14. * @copyright Copyright (c) 2007, Company Name
  15. * @link http://www.companywebsite.com CompanyName
  16. * @package #### PACKAGE NAME ####
  17. * @sub-package #### SUBPACKAGE NAME ####
  18. * @since #.#.# //Correct version number as needed
  19. * @version $Revision$
  20. * @author Your Name
  21. * @modifiedby $LastChangedBy$
  22. * @lastmodified $Date$
  23. */

URL: http://myeasyscripts.com/loudbaking/docblock-and-svnkeywords/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.