Return to Snippet

Revision: 7438
at July 24, 2008 17:04 by zingo


Initial Code
/**
 * Short description for file.
 *
 * Long description for file
 *
 * PHP 5
 *
 * Copyright (c) 2007, Company Name
 *                     Street address
 *                     City, State, Zip
 *
 *
 * @filesource   $HeadURL$
 * @copyright    Copyright (c) 2007, Company Name
 * @link         http://www.companywebsite.com CompanyName
 * @package      #### PACKAGE NAME ####
 * @sub-package  #### SUBPACKAGE NAME ####
 * @since        #.#.#  //Correct version number as needed
 * @version      $Revision$
 * @author       Your Name
 * @modifiedby   $LastChangedBy$
 * @lastmodified $Date$
 */

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

Initial Description
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.

Initial Title
Template for DocBlock and svn:keywords

Initial Tags
php, template

Initial Language
SVN