mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
* stamp-h.in: Remove; no longer needed.
* .cvsignore: Replace autom4te.cache and config.cache with *.cache. Remove config.h, config.hin, intl (no longer created). * lib/.cvsignore: Add config.h, config.hin, configmake.h, inttypes.h, stamp-h1. Sync bootstrap from coreutils.
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
*.cache
|
||||||
*.flc
|
*.flc
|
||||||
*.patch *.log log patches applied
|
*.patch *.log log patches applied
|
||||||
*.prj
|
*.prj
|
||||||
@@ -10,20 +11,15 @@ _*
|
|||||||
a.exe
|
a.exe
|
||||||
a.out
|
a.out
|
||||||
aclocal.m4
|
aclocal.m4
|
||||||
autom4te.cache
|
|
||||||
b.out
|
b.out
|
||||||
bison-*
|
bison-*
|
||||||
conf[0-9]*
|
conf[0-9]*
|
||||||
confdefs*
|
confdefs*
|
||||||
config.cache
|
|
||||||
config.h
|
|
||||||
config.hin
|
|
||||||
config.log
|
config.log
|
||||||
config.status
|
config.status
|
||||||
configure
|
configure
|
||||||
configure.lineno
|
configure.lineno
|
||||||
conftest*
|
conftest*
|
||||||
intl
|
|
||||||
patches
|
patches
|
||||||
releases
|
releases
|
||||||
stamp-h*
|
stamp-h*
|
||||||
|
|||||||
19
ChangeLog
19
ChangeLog
@@ -1,3 +1,22 @@
|
|||||||
|
2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
|
||||||
|
|
||||||
|
* stamp-h.in: Remove; no longer needed.
|
||||||
|
* .cvsignore: Replace autom4te.cache and config.cache with *.cache.
|
||||||
|
Remove config.h, config.hin, intl (no longer created).
|
||||||
|
* lib/.cvsignore: Add config.h, config.hin, configmake.h, inttypes.h,
|
||||||
|
stamp-h1.
|
||||||
|
|
||||||
|
Sync bootstrap from coreutils, as follows:
|
||||||
|
|
||||||
|
2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
|
||||||
|
|
||||||
|
* bootstrap (symlink_to_gnulib): New function.
|
||||||
|
(cp_mark_as_generated): Use it, to prefer symlinks-to-gnulib
|
||||||
|
to copies-of-gnulib.
|
||||||
|
(cp_mark_as_generated, slurp, gnulib_files):
|
||||||
|
Avoid making a copy if it's the same as the old version.
|
||||||
|
(gnulib_files): Add support for this variable (used by Bison).
|
||||||
|
|
||||||
2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
|
2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
|
||||||
|
|
||||||
* src/getargs.c (usage): Rework to use conventions similar to
|
* src/getargs.c (usage): Rework to use conventions similar to
|
||||||
|
|||||||
102
bootstrap
102
bootstrap
@@ -212,27 +212,73 @@ case $SKIP_PO in
|
|||||||
fi;;
|
fi;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
symlink_to_gnulib()
|
||||||
|
{
|
||||||
|
src=$GNULIB_SRCDIR/$1
|
||||||
|
dst=${2-$1}
|
||||||
|
dot_dots=
|
||||||
|
|
||||||
|
case $src in
|
||||||
|
/*) ;;
|
||||||
|
*)
|
||||||
|
case /$dst/ in
|
||||||
|
*//* | */../* | */./* | /*/*/*/*/*/)
|
||||||
|
echo >&2 "$0: invalid symlink calculation: $src -> $dst"
|
||||||
|
exit 1;;
|
||||||
|
/*/*/*/*/) dot_dots=../../../;;
|
||||||
|
/*/*/*/) dot_dots=../../;;
|
||||||
|
/*/*/) dot_dots=../;;
|
||||||
|
esac;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
test -f "$src" && {
|
||||||
|
test -h "$dst" &&
|
||||||
|
src_ls=`ls -diL "$src" 2>/dev/null` && set $src_ls && src_i=$1 &&
|
||||||
|
dst_ls=`ls -diL "$dst" 2>/dev/null` && set $dst_ls && dst_i=$1 &&
|
||||||
|
test "$src_i" = "$dst_i" || {
|
||||||
|
echo "$0: ln -fs $dot_dots$src $dst" &&
|
||||||
|
ln -fs "$dot_dots$src" "$dst"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
cp_mark_as_generated()
|
cp_mark_as_generated()
|
||||||
{
|
{
|
||||||
cp_src=$1
|
cp_src=$1
|
||||||
cp_dst=$2
|
cp_dst=$2
|
||||||
case $cp_dst in
|
|
||||||
*.[ch]) c1='/* '; c2=' */';;
|
|
||||||
*.texi) c1='@c '; c2= ;;
|
|
||||||
*.m4|*/Make*|Make*) c1='# ' ; c2= ;;
|
|
||||||
*) c1= ; c2= ;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
if test -z "$c1"; then
|
if cmp -s "$cp_src" "$GNULIB_SRCDIR/$cp_dst"; then
|
||||||
cp "$cp_src" "$cp_dst"
|
symlink_to_gnulib "$cp_dst"
|
||||||
return
|
else
|
||||||
|
case $cp_dst in
|
||||||
|
*.[ch]) c1='/* '; c2=' */';;
|
||||||
|
*.texi) c1='@c '; c2= ;;
|
||||||
|
*.m4|*/Make*|Make*) c1='# ' ; c2= ;;
|
||||||
|
*) c1= ; c2= ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if test -z "$c1"; then
|
||||||
|
cmp -s "$cp_src" "$cp_dst" || {
|
||||||
|
echo "$0: cp -f $cp_src $cp_dst" &&
|
||||||
|
cp -f "$cp_src" "$cp_dst"
|
||||||
|
}
|
||||||
|
else
|
||||||
|
# Copy the file first to get proper permissions if it
|
||||||
|
# doesn't already exist. Then overwrite the copy.
|
||||||
|
cp "$cp_src" "$cp_dst-t" &&
|
||||||
|
(
|
||||||
|
echo "$c1-*- buffer-read-only: t -*- vi: set ro:$c2" &&
|
||||||
|
echo "${c1}DO NOT EDIT! GENERATED AUTOMATICALLY!$c2" &&
|
||||||
|
cat "$cp_src"
|
||||||
|
) > $cp_dst-t &&
|
||||||
|
if cmp -s "$cp_dst-t" "$cp_dst"; then
|
||||||
|
rm -f "$cp_dst-t"
|
||||||
|
else
|
||||||
|
echo "$0: cp $cp_src $cp_dst # with edits" &&
|
||||||
|
mv -f "$cp_dst-t" "$cp_dst"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
(
|
|
||||||
echo "$c1-*- buffer-read-only: t -*- vi: set ro:$c2"
|
|
||||||
echo "${c1}DO NOT EDIT! GENERATED AUTOMATICALLY!$c2"
|
|
||||||
cat "$cp_src"
|
|
||||||
) >> "$cp_dst"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
slurp() {
|
slurp() {
|
||||||
@@ -245,11 +291,14 @@ slurp() {
|
|||||||
test "$dir/$file" = "$excluded_file" && continue 2
|
test "$dir/$file" = "$excluded_file" && continue 2
|
||||||
done
|
done
|
||||||
if test $file = Makefile.am; then
|
if test $file = Makefile.am; then
|
||||||
copied=$copied${sep}gnulib.mk; sep=$nl
|
copied=$copied${sep}gnulib.mk; sep=$nl
|
||||||
echo "$0: Copying $1/$dir/$file to $dir/gnulib.mk ..." &&
|
remove_intl='/^[^#].*\/intl/s/^/#/'
|
||||||
rm -f $dir/gnulib.mk
|
sed "$remove_intl" $1/$dir/$file | cmp -s - $dir/gnulib.mk || {
|
||||||
sed '/^[^#].*\/intl/s/^/#/' $1/$dir/$file >$dir/gnulib.mk
|
echo "$0: Copying $1/$dir/$file to $dir/gnulib.mk ..." &&
|
||||||
elif test -r ${2-no/such/dir}/$dir/$file ||
|
rm -f $dir/gnulib.mk &&
|
||||||
|
sed "$remove_intl" $1/$dir/$file >$dir/gnulib.mk
|
||||||
|
}
|
||||||
|
elif { test "${2+set}" = set && test -r $2/$dir/$file; } ||
|
||||||
grep -F "/$file/" $dir/CVS/Entries 2>/dev/null |
|
grep -F "/$file/" $dir/CVS/Entries 2>/dev/null |
|
||||||
grep -q '^/[^/]*/[0-9]'; then
|
grep -q '^/[^/]*/[0-9]'; then
|
||||||
echo "$0: $dir/$file overrides $1/$dir/$file"
|
echo "$0: $dir/$file overrides $1/$dir/$file"
|
||||||
@@ -267,7 +316,6 @@ slurp() {
|
|||||||
AC_DEFUN([gl_LOCK_EARLY], [])
|
AC_DEFUN([gl_LOCK_EARLY], [])
|
||||||
' $1/$dir/$file >$dir/$file
|
' $1/$dir/$file >$dir/$file
|
||||||
else
|
else
|
||||||
rm -f $dir/$file
|
|
||||||
cp_mark_as_generated $1/$dir/$file $dir/$file
|
cp_mark_as_generated $1/$dir/$file $dir/$file
|
||||||
fi
|
fi
|
||||||
fi || exit
|
fi || exit
|
||||||
@@ -306,9 +354,7 @@ $gnulib_tool $gnulib_tool_options --import $gnulib_modules &&
|
|||||||
slurp $bt || exit
|
slurp $bt || exit
|
||||||
|
|
||||||
for file in $gnulib_files; do
|
for file in $gnulib_files; do
|
||||||
src=$GNULIB_SRCDIR/$file
|
symlink_to_gnulib $file || exit
|
||||||
echo "$0: cp -fp $src $file" &&
|
|
||||||
cp -fp $src $file || exit
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
@@ -338,13 +384,11 @@ done
|
|||||||
# Get some extra files from gnulib, overriding existing files.
|
# Get some extra files from gnulib, overriding existing files.
|
||||||
|
|
||||||
for file in $gnulib_extra_files; do
|
for file in $gnulib_extra_files; do
|
||||||
src=$GNULIB_SRCDIR/$file
|
|
||||||
case $file in
|
case $file in
|
||||||
*/INSTALL) dest=.;;
|
*/INSTALL) dst=INSTALL;;
|
||||||
*) dest=$file;;
|
*) dst=$file;;
|
||||||
esac
|
esac
|
||||||
echo "$0: cp -fp $src $dest" &&
|
symlink_to_gnulib $file $dst || exit
|
||||||
cp -fp $src $dest || exit
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,9 @@ Makefile.in
|
|||||||
argmatch.c
|
argmatch.c
|
||||||
argmatch.h
|
argmatch.h
|
||||||
basename.c
|
basename.c
|
||||||
|
config.h
|
||||||
|
config.hin
|
||||||
|
configmake.h
|
||||||
dirname.c
|
dirname.c
|
||||||
dirname.h
|
dirname.h
|
||||||
dup-safer.c
|
dup-safer.c
|
||||||
@@ -23,6 +26,7 @@ gettext.h
|
|||||||
gnulib.mk
|
gnulib.mk
|
||||||
hash.c
|
hash.c
|
||||||
hash.h
|
hash.h
|
||||||
|
inttypes.h
|
||||||
inttypes_.h
|
inttypes_.h
|
||||||
malloc.c
|
malloc.c
|
||||||
mbswidth.c
|
mbswidth.c
|
||||||
@@ -34,6 +38,7 @@ quote.c
|
|||||||
quote.h
|
quote.h
|
||||||
quotearg.c
|
quotearg.c
|
||||||
quotearg.h
|
quotearg.h
|
||||||
|
stamp-h1
|
||||||
stdbool.h
|
stdbool.h
|
||||||
stdbool_.h
|
stdbool_.h
|
||||||
stdint.h
|
stdint.h
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
timestamp
|
|
||||||
Reference in New Issue
Block a user