/[svn]/ircd-hybrid/ylwrap
ViewVC logotype

Diff of /ircd-hybrid/ylwrap

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.912  
changed lines
  Added in v.945

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28