Browse Source
Convert Zcash versions to Debian format
pull/4/head
Jack Grigg
7 years ago
No known key found for this signature in database
GPG Key ID: 6A6914DAFBEA00DA
2 changed files with
3 additions and
2 deletions
-
doc/release-process.md
-
zcutil/build-debian-package.sh
|
|
@ -81,7 +81,7 @@ Add the newly created release notes to the Git repository: |
|
|
|
|
|
|
|
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 DEBFULLNAME="${DEBFULLNAME:-Zcash Company}" |
|
|
|
|
|
|
|
|
|
@ -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 |
|
|
|