mirror of
https://github.com/dragonflydb/dragonfly
synced 2024-11-21 15:11:20 +00:00
af23778655
We had a place in tools/packaging/generate_debian_package.sh that relied on the existence of build-opt, moreover, if it did not exist the script deadlocked. 1. Added more loggings 2. Removed the loop 3. Removed unnecessary dependency in the script on the build-dir name. Signed-off-by: Roman Gershman <roman@dragonflydb.io>
38 lines
805 B
Bash
Executable File
38 lines
805 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
RELEASE_DIR=build-release
|
|
APP_PATH=$RELEASE_DIR/dragonfly
|
|
|
|
set -e
|
|
|
|
if ! [ -f "helio/blaze.sh" ]; then
|
|
echo "ERROR"
|
|
echo "Could not find helio. Please only run this script from repo root."
|
|
echo "If you are already on the repo root, you might've cloned without submodules."
|
|
echo "Try running 'git submodule update --init --recursive'"
|
|
exit 1
|
|
fi
|
|
|
|
pwd
|
|
|
|
make release
|
|
|
|
if ! [ -f ${APP_PATH} ]; then
|
|
echo "ERROR"
|
|
echo "Failed to generate new dragonfly binary."
|
|
exit 1
|
|
fi
|
|
|
|
echo "Running ${APP_PATH} --version"
|
|
${APP_PATH} --version
|
|
|
|
if readelf -a ${APP_PATH} | grep GLIBC_PRIVATE >/dev/null 2>&1 ; then
|
|
echo "ERROR"
|
|
echo "The generated binary contain invalid GLIBC version entries."
|
|
exit 1
|
|
fi
|
|
|
|
make package
|
|
echo "Release package created: "
|
|
ls -lh $RELEASE_DIR/
|