From 27d96161264b409d445d48d046ed89ae289081eb Mon Sep 17 00:00:00 2001
From: kytv <kytv@mail.i2p>
Date: Sun, 11 Dec 2011 11:47:48 +0000
Subject: [PATCH] Remove the GNU-only -r parameter to sed

Revisiting this script now that I know a bit about regex.
---
 core/c/jbigi/mbuild-all.sh | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/core/c/jbigi/mbuild-all.sh b/core/c/jbigi/mbuild-all.sh
index a108dffe0f..3740af26d6 100755
--- a/core/c/jbigi/mbuild-all.sh
+++ b/core/c/jbigi/mbuild-all.sh
@@ -60,13 +60,11 @@ OPENBSD_PLATFORM="${X86_PLATFORMS} ${MISC_OPENBSD_PLATFORMS}"
 # FIXME Is this all?
 DARWIN_PLATFORMS="core2 corei"
 
-# Set the version to 5.0.2 for OSX because
-# 1) it doesn't have the -r parameter as an option for sed
-# 2) AFAIK there are only 64bit capable CPUs for the Intel Macs
+# Set the version to 5.0.2 for OSX because AFAIK there are only 64bit capable CPUs for the Intel Macs
 if [ `uname -s |grep Darwin` ]; then
   	VER=5.0.2
 else
-	VER=$(echo gmp-*.tar.bz2 | sed -re "s/(.*-)(.*)(.*.tar.bz2)$/\2/" | tail -n 1)
+	VER=$(echo gmp-*.tar.bz2 | sed -e "s/\(.*-\)\(.*\)\(.*.tar.bz2\)$/\2/" | tail -n 1)
 fi
 
 if [ "$VER" = "" ] ; then
-- 
GitLab