mirror of
https://github.com/radareorg/sdb.git
synced 2026-11-07 06:36:02 -10:00
* Fixes for pkgconfig and meson * Install missing headers * Make tests runnable even if sdb is not installed * refactor CFLAGS/LDFLAGS/SDB env var settings * ht: remove load_factor field and introduce ht_new_size API * handle more than the max number of precomputed prime indexes * use HtKv inside SdbHtKv instead of copying its fields * query: fix compiler warning by adding (char *) * sdbht: create BUCKET macro * ht: do not use macros, prefer static functions
20 lines
300 B
Bash
20 lines
300 B
Bash
#!/bin/sh
|
|
|
|
CURRENT_DIR=.
|
|
if [ "$#" -eq 1 ]; then
|
|
CURRENT_DIR=$1
|
|
fi
|
|
|
|
SRCDIR="${CURRENT_DIR}"/../src
|
|
if [ -z "${BASEDIR}" ]; then
|
|
BASEDIR="${SRCDIR}"
|
|
fi
|
|
SDB=${BASEDIR}/sdb
|
|
if [ ! -x "${SDB}" ]; then
|
|
SDB=$(which sdb)
|
|
fi
|
|
if [ ! -x "${SDB}" ]; then
|
|
echo "Cannot find ${SDB}"
|
|
exit 1
|
|
fi
|