path: root/
Commit message (Collapse)AuthorAgeFilesLines
* Fix in-tree case and allow external variablesSamuel Mendoza-Jonas2016-04-051-3/+16
| | | | | | | | | "$(basename $0)" would return the name of the script, when what is needed is the name of the directory; use 'dirname' instead. If PETITBOOT_VERSION is set, as in a buildroot environment, use this variable instead of the default case. Signed-off-by: Samuel Mendoza-Jonas <>
* Don't use dashes in version numbersJeremy Kerr2014-08-051-2/+2
| | | | | | ... as they're not valid for RPM. Signed-off-by: Jeremy Kerr <>
* Ensure we're using petitboot's git directoryJeremy Kerr2014-07-221-0/+2
| | | | | | | We don't want the version to be extracted from a higher-level git directory. Signed-off-by: Jeremy Kerr <>
* Use git tags in versionsJeremy Kerr2014-07-161-7/+11
| | | | | | | | If the current HEAD is tagged, we'd like to use that tag as the version. We remove a 'v' prefix, so that v1.0 -> 1.0 Signed-off-by: Jeremy Kerr <>
* Unify version generationJeremy Kerr2014-07-161-17/+10
| | | | | | | | | | | | | This change includes a few fixes to the script, in order to unify the versions generated from git vs. dev- versions. We unify on a simple YYYYMMDD format, and drop the time specifier (if you're relying on time info, you probably have the git SHAs to lookup from instead). We also clean up the date-generation code, by using printf's %T formatter, on git's %ct time specification, rather than trying to transform a %ci date. Signed-off-by: Jeremy Kerr <>
* autotools: Make petitboot autoreconfableJeff Bailey2014-07-161-0/+34
The standard way to regenerate the autotools bits is with 'autoreconf', but that doesn't work with our custom bootstrap script. We only need the bootstrap script to generate the version in, which we can easily do with m4_esyscmd_s instead. This change allows autoreconfiguration with `autoreconf -f -i`. Includes changes proposed by Yann E. Morin <>, and modifications from the original patch from Jeremy Kerr <> Signed-off-by: Jeff Bailey <> Signed-off-by: Jeremy Kerr <>
OpenPOWER on IntegriCloud