Auto merge of #2281 - str4d:release-version-handling, r=nathan-at-least

Release version handling

- Convert Zcash versions to Debian format for packaging
- [manpage] Handle build numbers in versions
This commit is contained in:
Homu
2017-05-18 17:40:47 -07:00
3 changed files with 8 additions and 5 deletions

View File

@@ -18,6 +18,7 @@ if [ ! -d $BUILD_PATH ]; then
fi
PACKAGE_VERSION=$($SRC_PATH/src/zcashd --version | grep version | cut -d' ' -f4 | tr -d v)
DEBVERSION=$(echo $PACKAGE_VERSION | sed 's/-beta/~beta/' | sed 's/-rc/~rc/' | sed 's/-/+/')
BUILD_DIR="$BUILD_PATH/$PACKAGE_NAME-$PACKAGE_VERSION-amd64"
if [ -d $BUILD_DIR ]; then
@@ -63,7 +64,7 @@ cd $SRC_PATH/contrib
# Create the control file
dpkg-shlibdeps $DEB_BIN/zcashd $DEB_BIN/zcash-cli
dpkg-gencontrol -P$BUILD_DIR
dpkg-gencontrol -P$BUILD_DIR -v$DEBVERSION
# Create the Debian package
fakeroot dpkg-deb --build $BUILD_DIR