Changeset 27d9616 for core/c


Ignore:
Timestamp:
Dec 11, 2011 11:47:48 AM (9 years ago)
Author:
kytv <kytv@…>
Branches:
master
Children:
d9f5a86
Parents:
50e3cdb
Message:

Remove the GNU-only -r parameter to sed

Revisiting this script now that I know a bit about regex.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/c/jbigi/mbuild-all.sh

    r50e3cdb r27d9616  
    6161DARWIN_PLATFORMS="core2 corei"
    6262
    63 # Set the version to 5.0.2 for OSX because
    64 # 1) it doesn't have the -r parameter as an option for sed
    65 # 2) AFAIK there are only 64bit capable CPUs for the Intel Macs
     63# Set the version to 5.0.2 for OSX because AFAIK there are only 64bit capable CPUs for the Intel Macs
    6664if [ `uname -s |grep Darwin` ]; then
    6765        VER=5.0.2
    6866else
    69         VER=$(echo gmp-*.tar.bz2 | sed -re "s/(.*-)(.*)(.*.tar.bz2)$/\2/" | tail -n 1)
     67        VER=$(echo gmp-*.tar.bz2 | sed -e "s/\(.*-\)\(.*\)\(.*.tar.bz2\)$/\2/" | tail -n 1)
    7068fi
    7169
Note: See TracChangeset for help on using the changeset viewer.