summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeoff Levand <geoff@infradead.org>2012-03-09 16:32:18 -0800
committerGeoff Levand <geoff@infradead.org>2012-03-09 16:32:18 -0800
commitd292846e5b1fe546ca1f7389b1ccd295c922a8c5 (patch)
treef7d010e59254e15ca6919d12d8f5e332580979f7
parente95497494f2c0d376c8cdb25548138c5f53cd77c (diff)
downloadtalos-petitboot-d292846e5b1fe546ca1f7389b1ccd295c922a8c5.tar.gz
talos-petitboot-d292846e5b1fe546ca1f7389b1ccd295c922a8c5.zip
Add time to version string
To comply with Debian's package version rules. Signed-off-by: Geoff Levand <geoff@infradead.org>
-rwxr-xr-xbootstrap4
1 files changed, 3 insertions, 1 deletions
diff --git a/bootstrap b/bootstrap
index 6a9f35b..9f28c42 100755
--- a/bootstrap
+++ b/bootstrap
@@ -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})
OpenPOWER on IntegriCloud