Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove bashisms from abi_version.sh

This is needed to build on Solaris

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
  • Loading branch information...
commit 54ab61a05af7a103e5dbd0887d5ad262d369c644 1 parent 43e609f
@sustrik sustrik authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 abi_version.sh
View
12 abi_version.sh
@@ -24,18 +24,18 @@ if [ ! -f src/nn.h ]; then
exit 1
fi
-CURRENT=$(egrep '^#define +NN_VERSION_CURRENT +[0-9]+$' src/nn.h)
-REVISION=$(egrep '^#define +NN_VERSION_REVISION +[0-9]+$' src/nn.h)
-AGE=$(egrep '^#define +NN_VERSION_AGE +[0-9]+$' src/nn.h)
+CURRENT=`egrep '^#define +NN_VERSION_CURRENT +[0-9]+$' src/nn.h`
+REVISION=`egrep '^#define +NN_VERSION_REVISION +[0-9]+$' src/nn.h`
+AGE=`egrep '^#define +NN_VERSION_AGE +[0-9]+$' src/nn.h`
if [ -z "$CURRENT" -o -z "$REVISION" -o -z "$AGE" ]; then
echo "abi_version.sh: error: could not extract version from src/nn.h" 1>&2
exit 1
fi
-CURRENT=$(printf '%s' "$CURRENT" | awk '{ print $3 }')
-REVISION=$(printf '%s' "$REVISION" | awk '{ print $3 }')
-AGE=$(printf '%s' "$AGE" | awk '{ print $3 }')
+CURRENT=`echo $CURRENT | awk '{ print $3 }'`
+REVISION=`echo $REVISION | awk '{ print $3 }'`
+AGE=`echo $AGE | awk '{ print $3 }'`
printf '%s' "$CURRENT.$REVISION.$AGE"
Please sign in to comment.
Something went wrong with that request. Please try again.