summaryrefslogtreecommitdiff
path: root/version.sh
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2014-11-11 13:28:03 -0500
committerMicah Anderson <micah@riseup.net>2014-11-11 13:28:03 -0500
commit55a5e900b47474528fd6a04ee632164143b05380 (patch)
treef24d9cf1151533059b03e7236480523f317681f3 /version.sh
parentc7a23bc0c2d36797331563feab83b5df936ecf07 (diff)
prepare for upgrade
Diffstat (limited to 'version.sh')
-rwxr-xr-xversion.sh21
1 files changed, 0 insertions, 21 deletions
diff --git a/version.sh b/version.sh
deleted file mode 100755
index b4425d0..0000000
--- a/version.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/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 ]; then
- echo "version.sh: error: include/zmq.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`
-if [ -z "$MAJOR" -o -z "$MINOR" -o -z "$PATCH" ]; then
- echo "version.sh: error: could not extract version from include/zmq.h" 1>&2
- exit 1
-fi
-MAJOR=`echo $MAJOR | awk '{ print $3 }'`
-MINOR=`echo $MINOR | awk '{ print $3 }'`
-PATCH=`echo $PATCH | awk '{ print $3 }'`
-echo $MAJOR.$MINOR.$PATCH | tr -d '\n'
-