1506b0cfd5
names (gsed/gnused), checking for a basic OS X sed feature in command line option handling, checking the actual result of the sed run against the expected result, and placing common code for the check under toolchain/dependencies/. (Heikki Lindholm)
12 lines
243 B
Bash
Executable File
12 lines
243 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Make sure the host sed supports '-i' (in-place).
|
|
# If it doesn't, we'll build and use our own.
|
|
SED=$(toolchain/dependencies/check-host-sed.sh)
|
|
|
|
if [ -z "$SED" ] ; then
|
|
echo build-sed-host-binary
|
|
else
|
|
echo use-sed-host-binary
|
|
fi
|