Skip to content

Instantly share code, notes, and snippets.

@matthiasr
Created June 28, 2012 21:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthiasr/3013871 to your computer and use it in GitHub Desktop.
Save matthiasr/3013871 to your computer and use it in GitHub Desktop.
bisecting curl keepalive problem on DragonFly
#!/bin/sh
echo buildconf
./buildconf 2> /dev/null > /dev/null || exit 125
echo configure
./configure 2> /dev/null > /dev/null || exit 125
echo make
make 2> /dev/null > /dev/null || exit 125
echo Attempting to use the curl we just built ...
src/curl http://www.shiningsilence.com/dbsdlog/ > bisect.tmp
E=$?
echo "Let's see what we got ..."
wc -c bisect.tmp
if [ $E -eq 56 ]; then
echo "... and a return code ($E)"
echo "cleaning up ..."
make -k distclean 2> /dev/null > /dev/null
echo done.
exit 1
else
echo "... and a return code ($E)"
echo "cleaning up ..."
make -k distclean 2> /dev/null > /dev/null
echo done.
exit 0
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment