Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #5071

Re: “Stardate” Version Numbering

From Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: “Stardate” Version Numbering
Date 2011-06-07 18:52 +0200
Organization A noiseless patient Spider
Message-ID <isll12$kt1$2@dont-email.me> (permalink)
References <isl3rm$o72$1@lust.ihug.co.nz>

Show all headers | View raw


On 07/06/2011 13:59, Lawrence D'Oliveiro allegedly wrote:
> The following one-liner sets the versionName attribute in
> AndroidManifest.xml to a number based on the number of days (accurate to
> 0.1 day) since the *nix epoch. This is what I’ve been using for a
> version number in one or two projects, in lieu of anything that makes
> more sense. :)
> 
> sed -i -r 's/(android:versionName=\")[^\"]*(\")/\1'"$(bc <<<"scale = 1; ($(Julian -f) - $(Julian -d 1970 1 1)) / 1")"'\2/' AndroidManifest.xml
> 
> This needs my “Julian” script, available here
> <https://github.com/ldo/Julian>. Though it can probably be rewritten
> to do without it, using the GNU “date” command instead...

That's so awesome! I wanna have sex with you right now.

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Find similar


Thread

“Stardate” Version Numbering Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-06-07 11:59 +0000
  Re: “Stardate” Version Numbering Silvio <silvio@moc.com> - 2011-06-07 14:13 +0200
    Re: “Stardate” Version Numbering bugbear <bugbear@trim_papermule.co.uk_trim> - 2011-06-07 13:51 +0100
      Re: “Stardate” Version Numbering Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2011-06-07 18:15 -0300
    Re: “Stardate” Version Numbering Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-06-08 10:46 +1200
      Re: “Stardate” Version Numbering Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-06-07 23:25 +0000
  Re: “Stardate” Version Numbering Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2011-06-07 18:52 +0200

csiph-web