Commit graph

2 commits

Author SHA1 Message Date
Jo-Philipp Wich
0856030c79 build: generate strictly increasing git revisions (#225)
Instead of simply emitting a "git-$hash" revision, take the commit time into
account to generate strictly increasing revisions to preserve opkg upgrade
capabilities.

The format is "git-YY.DDD.SSSSS-HHHHHHH" with the following defined fields:

  - YY        year number (00..99)
  - DDD       day of year (001..366)
  - SSSSSS    second of day (00000..86399)
  - HHHHHHH   abbreviated git commit hash

An example revision is "git-14.283.50202-bb388f0".

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-10-14 13:51:37 +02:00
Jo-Philipp Wich
cf99c53a74 build: add mkrevision.sh helper script which properly infers the revision from either svn, git-svn or git work copies 2013-03-25 11:05:34 +00:00