ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/ylwrap
(Generate patch)

Comparing:
ircd-hybrid/trunk/ylwrap (file contents), Revision 1720 by michael, Fri Dec 28 21:06:21 2012 UTC vs.
ircd-hybrid/branches/8.2.x/ylwrap (file contents), Revision 8316 by michael, Wed Feb 28 17:48:39 2018 UTC

# Line 1 | Line 1
1   #! /bin/sh
2   # ylwrap - wrapper for lex/yacc invocations.
3  
4 < scriptversion=2012-12-21.17; # UTC
4 > scriptversion=2016-01-11.22; # UTC
5  
6 < # Copyright (C) 1996-2012 Free Software Foundation, Inc.
6 > # Copyright (C) 1996-2017 Free Software Foundation, Inc.
7   #
8   # Written by Tom Tromey <tromey@cygnus.com>.
9   #
# Line 40 | Line 40 | get_dirname ()
40   # guard FILE
41   # ----------
42   # The CPP macro used to guard inclusion of FILE.
43 < guard()
43 > guard ()
44   {
45    printf '%s\n' "$1"                                                    \
46      | sed                                                               \
# Line 96 | Line 96 | esac
96  
97  
98   # The input.
99 < input="$1"
99 > input=$1
100   shift
101   # We'll later need for a correct munging of "#line" directives.
102   input_sub_rx=`get_dirname "$input" | quote_for_sed`
103 < case "$input" in
103 > case $input in
104    [\\/]* | ?:[\\/]*)
105      # Absolute path; do nothing.
106      ;;
107    *)
108      # Relative path.  Make it absolute.
109 <    input="`pwd`/$input"
109 >    input=`pwd`/$input
110      ;;
111   esac
112   input_rx=`get_dirname "$input" | quote_for_sed`
# Line 132 | Line 132 | sed_fix_filenames=
132   # guard in its implementation file.
133   sed_fix_header_guards=
134  
135 < while test "$#" -ne 0; do
136 <  if test "$1" = "--"; then
135 > while test $# -ne 0; do
136 >  if test x"$1" = x"--"; then
137      shift
138      break
139    fi
# Line 153 | Line 153 | while test "$#" -ne 0; do
153   done
154  
155   # The program to run.
156 < prog="$1"
156 > prog=$1
157   shift
158   # Make any relative path in $prog absolute.
159 < case "$prog" in
159 > case $prog in
160    [\\/]* | ?:[\\/]*) ;;
161 <  *[\\/]*) prog="`pwd`/$prog" ;;
161 >  *[\\/]*) prog=`pwd`/$prog ;;
162   esac
163  
164 # FIXME: add hostname here for parallel makes that run commands on
165 # other machines.  But that might take us over the 14-char limit.
164   dirname=ylwrap$$
165   do_exit="cd '`pwd`' && rm -rf $dirname > /dev/null 2>&1;"' (exit $ret); exit $ret'
166   trap "ret=129; $do_exit" 1
# Line 188 | Line 186 | if test $ret -eq 0; then
186        # otherwise prepend '../'.
187        case $to in
188          [\\/]* | ?:[\\/]*) target=$to;;
189 <        *) target="../$to";;
189 >        *) target=../$to;;
190        esac
191  
192        # Do not overwrite unchanged header files to avoid useless
# Line 197 | Line 195 | if test $ret -eq 0; then
195        # output of all other files to a temporary file so we can
196        # compare them to existing versions.
197        if test $from != $parser; then
198 <        realtarget="$target"
198 >        realtarget=$target
199          target=tmp-`printf '%s\n' "$target" | sed 's|.*[\\/]||g'`
200        fi
201  
# Line 244 | Line 242 | exit $ret
242   # eval: (add-hook 'write-file-hooks 'time-stamp)
243   # time-stamp-start: "scriptversion="
244   # time-stamp-format: "%:y-%02m-%02d.%02H"
245 < # time-stamp-time-zone: "UTC"
245 > # time-stamp-time-zone: "UTC0"
246   # time-stamp-end: "; # UTC"
247   # End:

Comparing:
ircd-hybrid/trunk/ylwrap (property svn:eol-style), Revision 1720 by michael, Fri Dec 28 21:06:21 2012 UTC vs.
ircd-hybrid/branches/8.2.x/ylwrap (property svn:eol-style), Revision 8316 by michael, Wed Feb 28 17:48:39 2018 UTC

# Line 0 | Line 1
1 + native

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)