kumquat-buildroot/package/sed/sedcheck.sh
Bernhard Reutner-Fischer 1506b0cfd5 Improve the checking of sed by adding some common GNU sed installation
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)
2007-03-09 08:33:34 +00:00

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