Proper way is:
- Have (any possible) Version Control in your project (and forever for all projects)
- Instead of rather useless autoincremented counter use any id, provided by VCS of choice
- Get this id and output itGet this id and output it (Mercurial sample, another SCMs just use another commands in
$$systemcall)as any other variable