aboutsummaryrefslogtreecommitdiff
path: root/build-aux/bootstrap
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2005-11-03 14:48:41 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2005-11-03 14:48:41 +0000
commitf73036eec5cdce31fba3f4a9d429037519282c74 (patch)
tree29ecba0a7869193d044b60016b499217539c14e2 /build-aux/bootstrap
parent26b908ecd3e16c61751feecf57d92364c1788ce8 (diff)
downloadcflow-f73036eec5cdce31fba3f4a9d429037519282c74.tar.gz
cflow-f73036eec5cdce31fba3f4a9d429037519282c74.tar.bz2
If file `.bootstrap' exists in the cwd and is
readable, prepend its contents to the command line
Diffstat (limited to 'build-aux/bootstrap')
-rwxr-xr-xbuild-aux/bootstrap10
1 files changed, 10 insertions, 0 deletions
diff --git a/build-aux/bootstrap b/build-aux/bootstrap
index 0b915fe..af891f8 100755
--- a/build-aux/bootstrap
+++ b/build-aux/bootstrap
@@ -48,6 +48,10 @@ The following two options are reserved for future use:
--no-po Do not download po files.
--update-po[=LANG] Update po file(s) and exit.
+If the file `.bootstrap' exists in the current working directory, its
+contents is read, comments and empty lines removed, shell variables expanded
+and the result is prepended to the command line options.
+
Running without arguments will suffice in most cases. It is equivalent
to
@@ -75,6 +79,12 @@ update_po() {
fi
}
+# Read configuration file
+if [ -r .bootstrap ]; then
+ echo "$0: Reading configuration file .bootstrap"
+ eval set -- "`sed 's/#.*$//;/^$/d' .bootstrap | tr '\n' ' '` $*"
+fi
+
# Parse options.
DOWNLOAD_PO=no

Return to:

Send suggestions and report system problems to the System administrator.