Skip to content

Commit

Permalink
ubuntu compat
Browse files Browse the repository at this point in the history
  • Loading branch information
kentslaney committed Dec 26, 2023
1 parent 6e40df0 commit d440b51
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 17 deletions.
7 changes: 7 additions & 0 deletions misc/git/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

DIR=$( cd "$( dirname `readlink -f "${BASH_SOURCE[0]}"` )" &> /dev/null && pwd )
HOOK="$DIR/../../.git/hooks/pre-commit"

[[ ! -e "$HOOK" ]] && ln -s "$DIR/pre-commit" "$HOOK"
git apply --cached "$DIR/debug.patch" -R --recount &> /dev/null || true
8 changes: 0 additions & 8 deletions misc/git/pre-commit.sh

This file was deleted.

25 changes: 16 additions & 9 deletions misc/memcached_server
Original file line number Diff line number Diff line change
Expand Up @@ -132,18 +132,25 @@ case "$1" in
capture $@
;;
cy-debug)
DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd "$DIR/.."
git apply misc/git/debug.patch -q --recount || true
sh misc/git/pre-commit.sh
if [ ! -e venv ]; then python -m virtualenv --python="`which python-dbg`" venv; fi
source venv/bin/activate
pip install Cython setuptools future pytest greenify gevent numpy
if [ -n "$2" ]; then
git apply misc/git/debug.patch --recount &> /dev/null || true
source misc/git/pre-commit
if [ ! -e venv ]; then
dbg="`which python-dbg || which python3-dbg`"
python -m virtualenv --python="$dbg" --seeder=pip venv;
source venv/bin/activate
pip install -U pip
pip install Cython setuptools future pytest greenify gevent numpy
else
source venv/bin/activate
fi
dbg="`which python-dbg || which python3-dbg`"
if [ -n "$2" ]; then
shift
cygdb . --skip-interpreter -- --args python-dbg setup.py test -a "$*"
cygdb . --skip-interpreter -- --args "$dbg" setup.py test -a "$*"
else
cygdb . --skip-interpreter -- --args python-dbg setup.py test
cygdb . --skip-interpreter -- --args "$dbg" setup.py test
fi
;;
*)
Expand Down

0 comments on commit d440b51

Please sign in to comment.