summaryrefslogtreecommitdiffstats
path: root/scripts/sed.sh
blob: 99aa640b0f400664c528147896decaaae5fa6492 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

# Must use gsed on Mac
if [[ "$OSTYPE" == "darwin"* ]]
then
        export SED=`which gsed`
else
        export SED=`which sed`
fi

if [ ! -x "$SED" ]
then
        echo "Sed not found, install gsed on Mac or sed on Linux"
        exit 1
fi