summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2007-02-20 17:20:22 +0100
committerJim Meyering <jim@meyering.net>2007-02-20 17:20:22 +0100
commitdd99d05b4a24966f22321793bfc45681652eceef (patch)
treeb34c8a376202fd811b8ff97772aa6009c9621604 /bootstrap
parentfd32ffb4da45270d26ecd4b6789636c3ffcc24fb (diff)
downloadcoreutils-dd99d05b4a24966f22321793bfc45681652eceef.tar.xz
* bootstrap: Move definitions of temporary directory names and the
new bt_regex "up" to precede all uses, so it's clearer what their scope is. Also, use [.], rather than \\., since the former works even if eval'd.
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap9
1 files changed, 5 insertions, 4 deletions
diff --git a/bootstrap b/bootstrap
index ccc8c860b..a7d1fa3dc 100755
--- a/bootstrap
+++ b/bootstrap
@@ -29,6 +29,11 @@ nl='
LC_ALL=C
export LC_ALL
+# Temporary directory names.
+bt='._bootmp'
+bt_regex=`echo "$bt"| sed 's/\./[.]/g'`
+bt2=${bt}2
+
usage() {
echo >&2 "\
Usage: $0 [OPTION]...
@@ -416,10 +421,6 @@ slurp() {
# Create boot temporary directories to import from gnulib and gettext.
-
-bt='._bootmp'
-bt_regex=`echo "$bt"| sed 's/\./\\./g'`
-bt2=${bt}2
rm -fr $bt $bt2 &&
mkdir $bt $bt2 || exit