--- /dev/null
+# -*- sh -*-
+# -----------------------------------------------------------------------------
+# Additional configuration file for ./Build
+# -----------------------------------------------------------------------------
+#
+# Build.rc.local is purely optional. When it exists, it is evaluated
+# after Build.rc to allow overriding some configurations in Build.rc.
+#
+# Please note that it is unsafe to override some configurations,
+# namely "setPrefix" and "setPath", as they affect other variables in
+# a non-predictable way.
+#
rm -f Build Build.tmp
Build: $(SOURCES)
+# Concatenate the source files to $@.tmp.
rm -f $@ $@.tmp
for i in $(SOURCES); do \
cat $$i >> $@.tmp; \
echo >> $@.tmp; \
done
- head -q -n -1 $@.tmp > $@
+# Copy the content of $@.tmp to $@ except for the last line.
+ lines=`wc -l $@.tmp | awk '{print $$1}'` && \
+ lines=`expr $$lines - 1` && \
+ head -n $$lines $@.tmp > $@
+# Clean up.
rm -f $@.tmp
chmod a=rx $@
setDocDirectory "."
setDocTarget "all"
-if [ -f "Build.rc" ]; then
+if [[ -f "Build.rc" ]]; then
. "Build.rc"
fi
+
+if [[ -f "Build.rc.local" ]]; then
+ . "Build.rc.local"
+fi