summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2006-09-08 08:57:45 +0000
committerJim Meyering <jim@meyering.net>2006-09-08 08:57:45 +0000
commit926e64e0210dad275c150d1d599c021412d7e1f6 (patch)
tree6741b64a138d75a46e15cdc64aeed9bc41515cf8 /bootstrap
parentc4e65d56c1ea0d4165af75f692f9e026d27b7d28 (diff)
downloadcoreutils-926e64e0210dad275c150d1d599c021412d7e1f6.tar.xz
* bootstrap (cp_mark_as_generated): Don't use "local", to
accommodate ancient "/bin/sh". Suggested by Ralf Wildenhues. Rename now-global "$src" and "$dst" to have cp_ prefix. Safer, and avoids confusion.
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap17
1 files changed, 8 insertions, 9 deletions
diff --git a/bootstrap b/bootstrap
index f92654b66..32bc478cf 100755
--- a/bootstrap
+++ b/bootstrap
@@ -214,26 +214,25 @@ esac
cp_mark_as_generated()
{
- local src=$1
- local dst=$2
- local c1 c2
- case $dst in
+ cp_src=$1
+ cp_dst=$2
+ case $cp_dst in
*.[ch]) c1='/* '; c2=' */';;
*.texi) c1='@c '; c2= ;;
- *.m4|*/Make*|Make*) c1='# '; c2= ;;
- *) ;;
+ *.m4|*/Make*|Make*) c1='# ' ; c2= ;;
+ *) c1= ; c2= ;;
esac
if test -z "$c1"; then
- cp "$src" "$dst"
+ cp "$cp_src" "$cp_dst"
return
fi
(
echo "$c1-*- buffer-read-only: t -*- vi: set ro:$c2"
echo "${c1}DO NOT EDIT! GENERATED AUTOMATICALLY!$c2"
- cat "$src"
- ) >> "$dst"
+ cat "$cp_src"
+ ) >> "$cp_dst"
}
slurp() {