diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-05-23 09:39:31 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-05-23 09:39:31 +0000 |
commit | e0c12aff3b78ff93607648f49a06128b450bf07e (patch) | |
tree | 96075abfb253a378913a8507775910cce8096daf /tools | |
parent | 2549234bd7c32d6a03370bbe20046bb45929f8e0 (diff) |
bash happy now?
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@660 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/configure | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/tools/configure b/tools/configure index d95f965d43..b65dc03295 100755 --- a/tools/configure +++ b/tools/configure @@ -111,29 +111,27 @@ if [ -z "$appsdir" ]; then appsdir=`input` fi -echo "Firmware directory: $firmdir" -echo "Apps directory: $appsdir" -echo "CFLAGS=\"$debug $target\"" - pwd=`pwd`; -sed \ - -e "s,@FIRMDIR@,$firmdir,g" \ - -e "s,@APPSDIR@,$appsdir,g" \ - -e "s,@DEBUG@,$debug,g" \ - -e "s,@TARGET@,$target,g" \ - -e "s,@PWD@,$pwd,g" \ -<<EOF > Makefile +sed > Makefile \ + -e "s,@FIRMDIR@,${firmdir},g" \ + -e "s,@APPSDIR@,${appsdir},g" \ + -e "s,@DEBUG@,${debug},g" \ + -e "s,@TARGET@,${target},g" \ + -e "s,@PWD@,${pwd},g" \ +<<EOF FIRMDIR=@FIRMDIR@ APPSDIR=@APPSDIR@ DEBUG=@DEBUG@ TARGET=@TARGET@ -THISDIR=@PWD@ +THISDIR="@PWD@" -CFLAGS=$(DEBUG) $(TARGET) +CFLAGS="\$(DEBUG) \$(TARGET)" all: - make -C $(FIRMDIR) CFLAGS=$(CFLAGS) OBJDIR=$(THISDIR) - make -C $(APPSDIR) CFLAGS=$(CFLAGS) OBJDIR=$(THISDIR) + make -C \$(FIRMDIR) CFLAGS=\$(CFLAGS) OBJDIR=\$(THISDIR) + make -C \$(APPSDIR) CFLAGS=\$(CFLAGS) OBJDIR=\$(THISDIR) EOF + +echo "Created Makefile" |