Attempt at workaround for the -e bug... I hope it works. (Untested as usual.)

Originally committed to SVN as r1222.
This commit is contained in:
Niels Martin Hansen 2007-06-16 12:50:34 +00:00
parent 40525074e3
commit 5b8273d67c
1 changed files with 13 additions and 1 deletions

View File

@ -1,4 +1,16 @@
#!/bin/sh
#!/bin/bash
test "X`echo -e`" = "X-e" && (
if `which bash`; then
echo "Your builtin echo doesn't support -e, running with bash instead."
bash $0
exit
elif
echo "Your builtin echo (or echo(1)) doesn't support -e."
echo "If you had bash I'd use that instead, but it seems you don't."
exit 1
fi
)
# Generate file list for automation subdir
rm -f automation/Makefile.am