all repos — honk @ 66fdb01b3b3e4f8ff67f66d913235e17c232a1ec

my fork of honk

preflight.sh (view raw)

 1set -e
 2
 3go version > /dev/null 2>&1 || (echo go 1.18+ is required && false)
 4
 5v=`go version | egrep -o "go1\.[^.]+"` || echo failed to identify go version
 6if [ "$v" \< "go1.18" ] ; then
 7	echo go version is too old: $v
 8	echo go 1.18+ is required
 9	false
10fi
11
12if [ \! \( -e /usr/include/sqlite3.h -o -e /usr/local/include/sqlite3.h -o `uname` = "Darwin" \) ] ; then
13	echo unable to find sqlite3.h header
14	echo please install libsqlite3 dev package
15	false
16fi
17
18touch .preflightcheck
19