diff options
author | Geoff Levand <geoff@infradead.org> | 2012-03-09 16:32:18 -0800 |
---|---|---|
committer | Geoff Levand <geoff@infradead.org> | 2012-03-09 16:32:18 -0800 |
commit | d292846e5b1fe546ca1f7389b1ccd295c922a8c5 (patch) | |
tree | f7d010e59254e15ca6919d12d8f5e332580979f7 /bootstrap | |
parent | e95497494f2c0d376c8cdb25548138c5f53cd77c (diff) | |
download | petitboot-d292846e5b1fe546ca1f7389b1ccd295c922a8c5.zip petitboot-d292846e5b1fe546ca1f7389b1ccd295c922a8c5.tar.gz |
Add time to version string
To comply with Debian's package version rules.
Signed-off-by: Geoff Levand <geoff@infradead.org>
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -15,8 +15,10 @@ elif head=$(git rev-parse --short --verify HEAD 2>/dev/null); then date=$(git log --pretty=format:"%ci" -1 HEAD) date=${date##20} - date=${date%% [0-9][0-9]:*} + date=${date%%:[0-9][0-9] *} date=${date//-/.} + date=${date// /.} + date=${date//:/.} version=$(printf '%s-%s%s' ${date} g ${head}) |