forked from len0rd/rockbox
Now checks that sed works right before the Makefile for a simulator is created,
since there are broken ones in use out there and they make bad Makefiles. Details at: http://www.rockbox.org/twiki/bin/view/Main/BrokenSed git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6939 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
1983738ea1
commit
069e2a5b8c
1 changed files with 12 additions and 0 deletions
12
tools/configure
vendored
12
tools/configure
vendored
|
|
@ -679,6 +679,18 @@ sed > autoconf.h \
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
if test "$simulator" = "yes"; then
|
if test "$simulator" = "yes"; then
|
||||||
|
# verify that we have a sed version we can use!
|
||||||
|
lines=`echo "moo" | sed -e '/moo/cline1\nline2\nline3' | wc -l`
|
||||||
|
if test "$lines" -eq "1"; then
|
||||||
|
echo "You have a broken sed version. You must upgrade to be able to "
|
||||||
|
echo "generate a fine Makefile. See details at:"
|
||||||
|
echo "http://www.rockbox.org/twiki/bin/view/Main/BrokenSed"
|
||||||
|
exit
|
||||||
|
else
|
||||||
|
version=`sed --version | head -n 1`
|
||||||
|
echo "$version is a fine sed"
|
||||||
|
fi
|
||||||
|
|
||||||
# add simul make stuff on the #SIMUL# line
|
# add simul make stuff on the #SIMUL# line
|
||||||
simmagic='/#SIMUL#/c\ @$(MAKE) -C $(SIMDIR) OBJDIR=$(BUILDDIR)/sim\n @$(MAKE) -C $(ROOTDIR)/uisimulator/common OBJDIR=$(BUILDDIR)/comsim'
|
simmagic='/#SIMUL#/c\ @$(MAKE) -C $(SIMDIR) OBJDIR=$(BUILDDIR)/sim\n @$(MAKE) -C $(ROOTDIR)/uisimulator/common OBJDIR=$(BUILDDIR)/comsim'
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue