#!/bin/sh## This script extracts the 0MQ version from include/zmq.h, which is the master# location for this information.#if[!-f include/zmq.h ];thenecho"version.sh: error: include/zmq.h does not exist" 1>&2exit 1fiMAJOR=`egrep '^#define +ZMQ_VERSION_MAJOR +[0-9]+$' include/zmq.h`MINOR=`egrep '^#define +ZMQ_VERSION_MINOR +[0-9]+$' include/zmq.h`PATCH=`egrep '^#define +ZMQ_VERSION_PATCH +[0-9]+$' include/zmq.h`if[-z"$MAJOR"-o-z"$MINOR"-o-z"$PATCH"];thenecho"version.sh: error: could not extract version from include/zmq.h" 1>&2exit 1fiMAJOR=`echo$MAJOR | awk'{ print $3 }'`MINOR=`echo$MINOR | awk'{ print $3 }'`PATCH=`echo$PATCH | awk'{ print $3 }'`