I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 27d96161 authored by kytv's avatar kytv
Browse files

Remove the GNU-only -r parameter to sed

Revisiting this script now that I know a bit about regex.
parent 50e3cdba
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment