~ubuntu-branches/ubuntu/trusty/sblim-sfcb/trusty-proposed

« back to all changes in this revision

Viewing changes to ylwrap

  • Committer: Bazaar Package Importer
  • Author(s): Thierry Carrez
  • Date: 2009-06-08 12:04:49 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090608120449-byfplk09rqz8rtg6
Tags: 1.3.3-0ubuntu1
* New upstream release.
* debian/rules: Removed rpath hacks, SFCB default build handles that now.
* Removed 1934753-remove-assignment.diff, now upstream.
* Refreshed patch cim-schema-location.diff

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# ylwrap - wrapper for lex/yacc invocations.
3
3
 
4
 
scriptversion=2005-05-14.22
 
4
scriptversion=2007-11-22.22
5
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  Free Software Foundation, Inc.
8
8
#
9
9
# Written by Tom Tromey <tromey@cygnus.com>.
10
10
#
101
101
# FIXME: add hostname here for parallel makes that run commands on
102
102
# other machines.  But that might take us over the 14-char limit.
103
103
dirname=ylwrap$$
104
 
trap "cd `pwd`; rm -rf $dirname > /dev/null 2>&1" 1 2 3 15
 
104
trap "cd '`pwd`'; rm -rf $dirname > /dev/null 2>&1" 1 2 3 15
105
105
mkdir $dirname || exit 1
106
106
 
107
107
cd $dirname
108
108
 
109
109
case $# in
110
 
  0) $prog "$input" ;;
111
 
  *) $prog "$@" "$input" ;;
 
110
  0) "$prog" "$input" ;;
 
111
  *) "$prog" "$@" "$input" ;;
112
112
esac
113
113
ret=$?
114
114