Re: Rebase and incrementing version numbers
- From
- Michael Nahas <mike.nahas@gmail.com>
- Date
- Jan 19, 2012, 20:06 UTC
- Message-ID
- <CADo4Y9hFgd5vU-EY6x4=hUyVDmANmgw6mH0u2=7Me=yFO5n2kg@mail.gmail.com>
- In-Reply-To
- <CAJsNXTkDdHTMqmXCynT2nEYyuTmSF53RVtG2V+v7b+qcsYYufg@mail.gmail.com>
Show 8 quoted lines
> Suggestion #1: Just put $Rev$ into the file and be done with it until > the team moves over to Git (at which point you can figure something > else out). > > Suggestion #2: In your release process, put something like `sed -e > "s/@@id@@/$(date +%s)/" source-dir/config > release-dir/config` > > -PJ
Ideally, this value only increments with a change in a certain directory.
I think using either $Rev$ or a data+time value conditioned on a file changing in a directory might work. Thanks!
Mike