summaryrefslogtreecommitdiff
path: root/version.sh
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2012-02-16 10:01:47 +0900
committerMartin Sustrik <sustrik@250bpm.com>2012-02-16 10:01:47 +0900
commit4a7aad06d95701cf232198093ce396dcdbb53e5b (patch)
tree8ced8929e603a179d9434099244dfd782e705d5e /version.sh
parent1fc63e4dbcf1438eb571d720f57be68852f820f7 (diff)
ZeroMQ renamed to Crossroads
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'version.sh')
-rwxr-xr-xversion.sh16
1 files changed, 8 insertions, 8 deletions
diff --git a/version.sh b/version.sh
index b4425d0..23c453f 100755
--- a/version.sh
+++ b/version.sh
@@ -1,17 +1,17 @@
#!/bin/sh
#
-# This script extracts the 0MQ version from include/zmq.h, which is the master
-# location for this information.
+# This script extracts the Crossroads version from include/xs.h,
+# which is the master location for this information.
#
-if [ ! -f include/zmq.h ]; then
- echo "version.sh: error: include/zmq.h does not exist" 1>&2
+if [ ! -f include/xs.h ]; then
+ echo "version.sh: error: include/xs.h does not exist" 1>&2
exit 1
fi
-MAJOR=`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`
+MAJOR=`egrep '^#define +XS_VERSION_MAJOR +[0-9]+$' include/xs.h`
+MINOR=`egrep '^#define +XS_VERSION_MINOR +[0-9]+$' include/xs.h`
+PATCH=`egrep '^#define +XS_VERSION_PATCH +[0-9]+$' include/xs.h`
if [ -z "$MAJOR" -o -z "$MINOR" -o -z "$PATCH" ]; then
- echo "version.sh: error: could not extract version from include/zmq.h" 1>&2
+ echo "version.sh: error: could not extract version from include/xs.h" 1>&2
exit 1
fi
MAJOR=`echo $MAJOR | awk '{ print $3 }'`