Convert Zcash versions to Debian format
This commit is contained in:
@@ -81,7 +81,7 @@ Add the newly created release notes to the Git repository:
|
|||||||
|
|
||||||
Update the Debian package changelog:
|
Update the Debian package changelog:
|
||||||
|
|
||||||
export DEBVERSION="${ZCASH_RELEASE}"
|
export DEBVERSION=$(echo $ZCASH_RELEASE | sed 's/-beta/~beta/' | sed 's/-rc/~rc/' | sed 's/-/+/')
|
||||||
export DEBEMAIL="${DEBEMAIL:-team@z.cash}"
|
export DEBEMAIL="${DEBEMAIL:-team@z.cash}"
|
||||||
export DEBFULLNAME="${DEBFULLNAME:-Zcash Company}"
|
export DEBFULLNAME="${DEBFULLNAME:-Zcash Company}"
|
||||||
|
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ if [ ! -d $BUILD_PATH ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
PACKAGE_VERSION=$($SRC_PATH/src/zcashd --version | grep version | cut -d' ' -f4 | tr -d v)
|
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"
|
BUILD_DIR="$BUILD_PATH/$PACKAGE_NAME-$PACKAGE_VERSION-amd64"
|
||||||
|
|
||||||
if [ -d $BUILD_DIR ]; then
|
if [ -d $BUILD_DIR ]; then
|
||||||
@@ -63,7 +64,7 @@ cd $SRC_PATH/contrib
|
|||||||
|
|
||||||
# Create the control file
|
# Create the control file
|
||||||
dpkg-shlibdeps $DEB_BIN/zcashd $DEB_BIN/zcash-cli
|
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
|
# Create the Debian package
|
||||||
fakeroot dpkg-deb --build $BUILD_DIR
|
fakeroot dpkg-deb --build $BUILD_DIR
|
||||||
|
|||||||
Reference in New Issue
Block a user