1 |
|
#! /bin/sh |
2 |
|
# ylwrap - wrapper for lex/yacc invocations. |
3 |
|
|
4 |
< |
scriptversion=2005-05-14.22 |
4 |
> |
scriptversion=2009-04-28.21; # UTC |
5 |
|
|
6 |
< |
# Copyright (C) 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2004, 2005 |
7 |
< |
# Free Software Foundation, Inc. |
6 |
> |
# Copyright (C) 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2004, 2005, |
7 |
> |
# 2007, 2009 Free Software Foundation, Inc. |
8 |
|
# |
9 |
|
# Written by Tom Tromey <tromey@cygnus.com>. |
10 |
|
# |
19 |
|
# GNU General Public License for more details. |
20 |
|
# |
21 |
|
# You should have received a copy of the GNU General Public License |
22 |
< |
# along with this program; if not, write to the Free Software |
23 |
< |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
24 |
< |
# 02110-1301, USA. |
22 |
> |
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
23 |
|
|
24 |
|
# As a special exception to the GNU General Public License, if you |
25 |
|
# distribute this file as part of a program that contains a |
99 |
|
# FIXME: add hostname here for parallel makes that run commands on |
100 |
|
# other machines. But that might take us over the 14-char limit. |
101 |
|
dirname=ylwrap$$ |
102 |
< |
trap "cd `pwd`; rm -rf $dirname > /dev/null 2>&1" 1 2 3 15 |
102 |
> |
trap "cd '`pwd`'; rm -rf $dirname > /dev/null 2>&1" 1 2 3 15 |
103 |
|
mkdir $dirname || exit 1 |
104 |
|
|
105 |
|
cd $dirname |
106 |
|
|
107 |
|
case $# in |
108 |
< |
0) $prog "$input" ;; |
109 |
< |
*) $prog "$@" "$input" ;; |
108 |
> |
0) "$prog" "$input" ;; |
109 |
> |
*) "$prog" "$@" "$input" ;; |
110 |
|
esac |
111 |
|
ret=$? |
112 |
|
|
217 |
|
# eval: (add-hook 'write-file-hooks 'time-stamp) |
218 |
|
# time-stamp-start: "scriptversion=" |
219 |
|
# time-stamp-format: "%:y-%02m-%02d.%02H" |
220 |
< |
# time-stamp-end: "$" |
220 |
> |
# time-stamp-time-zone: "UTC" |
221 |
> |
# time-stamp-end: "; # UTC" |
222 |
|
# End: |