Skip to content

Commit

Permalink
fix: repair version number error
Browse files Browse the repository at this point in the history
Change-Id: I29d9465243d9e06aecd144a81b00b701e68ee7ce
  • Loading branch information
haruyukilxz committed Oct 8, 2018
1 parent 8901a0b commit 3ce05b0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .release.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"commit": {
"quilt": false,
"pkgver": "git describe --tags --long %(ref)s | awk '{split($0,v,\"-\"); print v[1]\"+r\"v[2]\"+\"v[3]}'",
"pkgver": "$PWD/debian/makeVersion",
"dist": "experimental"
},
"release": {
Expand Down
5 changes: 5 additions & 0 deletions debian/makeVersion
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

lastTag=$(git describe --tags `git rev-list --tags --max-count=1`)
version=${lastTag}"+r"$(date "+%y%m%d%H%M%S")"+"$(git rev-parse --short HEAD)
echo $version

0 comments on commit 3ce05b0

Please sign in to comment.