3 |
|
|
4 |
|
scriptversion=2011-08-25.18; # UTC |
5 |
|
|
6 |
< |
# Copyright (C) 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2004, 2005, |
7 |
< |
# 2007, 2009, 2010, 2011 Free Software Foundation, Inc. |
6 |
> |
# Copyright (C) 1996-2012 Free Software Foundation, Inc. |
7 |
|
# |
8 |
|
# Written by Tom Tromey <tromey@cygnus.com>. |
9 |
|
# |
31 |
|
|
32 |
|
case "$1" in |
33 |
|
'') |
34 |
< |
echo "$0: No files given. Try \`$0 --help' for more information." 1>&2 |
34 |
> |
echo "$0: No files given. Try '$0 --help' for more information." 1>&2 |
35 |
|
exit 1 |
36 |
|
;; |
37 |
|
--basedir) |
128 |
|
# The directory holding the input. |
129 |
|
input_dir=`echo "$input" | sed -e 's,\([\\/]\)[^\\/]*$,\1,'` |
130 |
|
# Quote $INPUT_DIR so we can use it in a regexp. |
131 |
< |
# FIXME: really we should care about more than `.' and `\'. |
131 |
> |
# FIXME: really we should care about more than '.' and '\'. |
132 |
|
input_rx=`echo "$input_dir" | sed 's,\\\\,\\\\\\\\,g;s,\\.,\\\\.,g'` |
133 |
|
|
134 |
|
while test "$#" -ne 0; do |
145 |
|
fi |
146 |
|
if test -f "$from"; then |
147 |
|
# If $2 is an absolute path name, then just use that, |
148 |
< |
# otherwise prepend `../'. |
148 |
> |
# otherwise prepend '../'. |
149 |
|
case "$2" in |
150 |
|
[\\/]* | ?:[\\/]*) target="$2";; |
151 |
|
*) target="../$2";; |
161 |
|
realtarget="$target" |
162 |
|
target="tmp-`echo $target | sed s/.*[\\/]//g`" |
163 |
|
fi |
164 |
< |
# Edit out `#line' or `#' directives. |
164 |
> |
# Edit out '#line' or '#' directives. |
165 |
|
# |
166 |
|
# We don't want the resulting debug information to point at |
167 |
|
# an absolute srcdir; it is better for it to just mention the |