projects
/
gnulib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cbfeef0
)
autoupdate ylwrap
author
Karl Berry
<karl@freefriends.org>
Thu, 25 Aug 2011 22:24:28 +0000
(15:24 -0700)
committer
Karl Berry
<karl@freefriends.org>
Thu, 25 Aug 2011 22:24:28 +0000
(15:24 -0700)
build-aux/ylwrap
patch
|
blob
|
history
diff --git
a/build-aux/ylwrap
b/build-aux/ylwrap
index
92b2011
..
9253635
100755
(executable)
--- a/
build-aux/ylwrap
+++ b/
build-aux/ylwrap
@@
-1,10
+1,10
@@
#! /bin/sh
# ylwrap - wrapper for lex/yacc invocations.
#! /bin/sh
# ylwrap - wrapper for lex/yacc invocations.
-scriptversion=201
0-02-06
.18; # UTC
+scriptversion=201
1-08-25
.18; # UTC
# Copyright (C) 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2004, 2005,
# Copyright (C) 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2004, 2005,
-# 2007, 2009, 2010 Free Software Foundation, Inc.
+# 2007, 2009, 2010
, 2011
Free Software Foundation, Inc.
#
# Written by Tom Tromey <tromey@cygnus.com>.
#
#
# Written by Tom Tromey <tromey@cygnus.com>.
#
@@
-137,19
+137,19
@@
if test $ret -eq 0; then
# Handle y_tab.c and y_tab.h output by DOS
if test $y_tab_nodot = "yes"; then
if test $from = "y.tab.c"; then
# Handle y_tab.c and y_tab.h output by DOS
if test $y_tab_nodot = "yes"; then
if test $from = "y.tab.c"; then
- from="y_tab.c"
+
from="y_tab.c"
else
else
- if test $from = "y.tab.h"; then
- from="y_tab.h"
- fi
+
if test $from = "y.tab.h"; then
+
from="y_tab.h"
+
fi
fi
fi
if test -f "$from"; then
# If $2 is an absolute path name, then just use that,
# otherwise prepend `../'.
case "$2" in
fi
fi
if test -f "$from"; then
# If $2 is an absolute path name, then just use that,
# otherwise prepend `../'.
case "$2" in
- [\\/]* | ?:[\\/]*) target="$2";;
- *) target="../$2";;
+
[\\/]* | ?:[\\/]*) target="$2";;
+
*) target="../$2";;
esac
# We do not want to overwrite a header file if it hasn't
esac
# We do not want to overwrite a header file if it hasn't
@@
-159,8
+159,8
@@
if test $ret -eq 0; then
# Makefile. Divert the output of all other files to a temporary
# file so we can compare them to existing versions.
if test $first = no; then
# Makefile. Divert the output of all other files to a temporary
# file so we can compare them to existing versions.
if test $first = no; then
- realtarget="$target"
- target="tmp-`echo $target | sed s/.*[\\/]//g`"
+
realtarget="$target"
+
target="tmp-`echo $target | sed s/.*[\\/]//g`"
fi
# Edit out `#line' or `#' directives.
#
fi
# Edit out `#line' or `#' directives.
#
@@
-184,10
+184,10
@@
if test $ret -eq 0; then
# Check whether header files must be updated.
if test $first = no; then
# Check whether header files must be updated.
if test $first = no; then
- if test -f "$realtarget" && cmp -s "$realtarget" "$target"; then
- echo "$2" is unchanged
- rm -f "$target"
- else
+
if test -f "$realtarget" && cmp -s "$realtarget" "$target"; then
+
echo "$2" is unchanged
+
rm -f "$target"
+
else
echo updating "$2"
mv -f "$target" "$realtarget"
fi
echo updating "$2"
mv -f "$target" "$realtarget"
fi