Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modify version number of deb build in travis
- Loading branch information
Showing
6 changed files
with
35 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
on-imagebuilder (1.1-1) UNRELEASED; urgency=low | ||
on-imagebuilder (0.9.0) UNRELEASED; urgency=low | ||
|
||
[ Alan Wei ] | ||
* Initial release | ||
|
||
-- Alan Wei <alan.wei@emc.com> Fri, 14 Oct 2016 03:52:50 +0000 | ||
-- rackhd <rackhd@emc.com> Fri, 14 Oct 2016 03:52:50 +0000 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
set -ex | ||
|
||
# | ||
# This script will generate var DEBRANCH | ||
# DEBRANCH format is ${SYMBOL}-${DATESTRING} | ||
# | ||
|
||
DEBDIR="./debian" | ||
if [ ! -d "${DEBDIR}" ]; then | ||
echo "Debian directory ${DEBDIR} doesn't exist" | ||
exit 1 | ||
fi | ||
|
||
# Version in changelog will be assigned when branch created | ||
# The version in pushed tag will be exactly the same with that in changelog | ||
VERSION=$(dpkg-parsechangelog | grep ^Version | cut -d' ' -f2 | cut -d' ' -f1) | ||
GIT_COMMIT_DATE=$(git show -s --pretty="format:%ci") | ||
DATE_STRING=$(date -d "$GIT_COMMIT_DATE" -u +"%Y%m%dUTC") | ||
GIT_COMMIT_HASH=$(git show -s --pretty="format:%h") | ||
if [ -z "$DEBVERSION" ]; then | ||
DEBVERSION=${VERSION}-${DATE_STRING}-${GIT_COMMIT_HASH} | ||
fi | ||
echo $DEBVERSION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters