2

Lets say I have some comments at the top of my javascript/php/html etc and I want to add in automated version numbers in Aptana Studio... how could I do this. All of my projects use git in Aptana and I really just want the git version number for the file to be inserted?

In other dev apps I can do something like $VERSION in the file but I cant find a reference for this in Aptana.

Thanks very much

Alex
  • 3,732
  • 5
  • 37
  • 59

1 Answers1

1

You could setup a filter driver in order to replace the $VERSION by the current version number deduced from a git describe:

However, there are other ways to put that information, as discussed in "Enable ident string for Git repos":

Recommended way of embedding version info in product is to use build system for that; see below for details and alternate approaches.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • that's kinda genius... I was hoping for something simple like in TextMate but I'm going to give your suggestion a try... – Alex Aug 20 '12 at 08:52