* fixinc/Makefile.in: Set SHELL.
* fixinc/fixincl.c (fix_with_system): Quote file names before
passing them to shell.
* Makefile.in: Use fix-header$(build_exeext) instead
of fix-header.
From-SVN: r40561
+2001-03-16 Laurynas Biveinis <lauras@softhome.net>
+
+ * fixinc/Makefile.in: Set SHELL.
+
+2001-03-16 Laurynas Biveinis <lauras@softhome.net>
+
+ * fixinc/fixincl.c (fix_with_system): Quote file names before
+ passing them to shell.
+
+2001-03-16 Laurynas Biveinis <lauras@softhome.net>
+
+ * Makefile.in: Use fix-header$(build_exeext) instead
+ of fix-header.
+
2001-03-16 Richard Henderson <rth@redhat.com>
* dwarf2out.c: Revert most of 2000-11-25 and 2001-01-24 changes.
# This is nominally a 'build' program, but it's run only when host==build,
# so we can (indeed, must) use $(LIBDEPS) and $(LIBS).
-fix-header: fix-header.o scan-decls.o scan.o xsys-protos.h $(LIBDEPS) \
- libcpp.a
+fix-header$(build_exeext): fix-header.o scan-decls.o scan.o xsys-protos.h \
+ $(LIBDEPS) libcpp.a
$(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $@ fix-header.o \
scan-decls.o scan.o libcpp.a $(LIBS)
# The idea is to make sure fix-header gets built,
# but not rerun fixproto after each stage
# just because fix-header's mtime has changed.
-fixhdr.ready: fix-header
+fixhdr.ready: fix-header$(build_exeext)
-if [ -f fixhdr.ready ] ; then \
true; \
else \
-rm -f specs float.h-* enquire SYSCALLS.c.X SYSCALLS.c
-rm -f collect collect2 mips-tfile mips-tdump
# Delete files generated for fixproto
- -rm -rf fix-header xsys-protos.h deduced.h tmp-deduced.h \
+ -rm -rf fix-header$(build_exeext) xsys-protos.h deduced.h tmp-deduced.h \
gen-protos$(build_exeext) fixproto.list fixtmp.* fixhdr.ready
# Delete files generated for fixincl
-rm -rf fixincl fixinc.sh specs.ready
# The makefile built from this file lives in the fixinc subdirectory.
# Its purpose is to build the any-platforms fixinc.sh script.
+SHELL=/bin/sh
+
FL_LIST = $(CFLAGS) $(CPPFLAGS) $(WARN_CFLAGS)
FIXINC_DEFS = -DIN_GCC -DHAVE_CONFIG_H $(FL_LIST) $(INCLUDES)
/*
* Now add the fix number and file names that may be needed
*/
- sprintf (pz_scan, "%ld %s %s %s", p_fixd - fixDescList,
+ sprintf (pz_scan, "%ld \'%s\' \'%s\' \'%s\'", p_fixd - fixDescList,
pz_fix_file, pz_file_source, pz_temp_file);
}
else /* NOT an "internal" fix: */
the following bizarre use of 'cat' only works on DOS boxes.
It causes the file to be dropped into a temporary file for
'cat' to read (pipes do not work on DOS). */
- tSCC z_cmd_fmt[] = " %s | cat > %s";
+ tSCC z_cmd_fmt[] = " \'%s\' | cat > \'%s\'";
#else
/* Don't use positional formatting arguments because some lame-o
implementations cannot cope :-(. */