redoconf: a stub rc_include() now sources ./redoconf.rc automatically.

This lets us remove the awkward ". ./redoconf.rc" line from zillions
of .od scripts, without paying the price of *always* including that
whole file every time default.do.sh is used.
This commit is contained in:
Avery Pennarun 2019-03-02 04:23:05 -05:00
commit 1a3c11f220
34 changed files with 5 additions and 34 deletions

View file

@ -1,4 +1,3 @@
. ./redoconf.rc
rc_include \
rc/CC.required.rc \
rc/CXX.rc \

View file

@ -1,7 +1,6 @@
# Demonstrate how to compile .o files using nonstandard
# compiler flags. You could also do this for a whole
# directory using default.o.od.
. ./redoconf.rc
rc_include all.rc
src="$S/${1%.o}.c"

View file

@ -1,6 +1,5 @@
# This script is run from the output dir.
# The source dir is at $S.
. ./redoconf.rc
rc_include all.rc
redo-ifchange "$S/sources"

View file

@ -1,4 +1,3 @@
. ./redoconf.rc
rc_include rc/CC.rc rc/rt.autolib.rc rc/posix.rc
prog="

View file

@ -1,4 +1,3 @@
. ./redoconf.rc
rc_include
rc_appendln CPPFLAGS "-DEXTRA_RC_INCLUDED=1"

View file

@ -1,4 +1,3 @@
. ./redoconf.rc
rc_include rc/CC.rc
prog='

View file

@ -1,4 +1,3 @@
. ./redoconf.rc
rc_include rc/CC.rc rc/windows.h.rc rc/Wall.rc
appendln CPPFLAGS "-Werror" # abort if any warnings