Top 10k strings from ylwrap
in <root> / bin / pc / Emulators / fuse-hc2000-hacks.7z / src / fuse /
Back to the directory listing
2 exit $? 2 if test $first = no; then 2 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'\ 2 -e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g'` 1 while test "$#" -ne 0; do 1 trap "cd '`pwd`'; rm -rf $dirname > /dev/null 2>&1" 1 2 3 15 1 target="tmp-`echo $target | sed s/.*[\\/]//g`" 1 scriptversion=2009-04-28.21; # UTC 1 rm -rf $dirname 1 realtarget="$target" 1 mkdir $dirname || exit 1 1 input="$1" 1 if test -f "$realtarget" && cmp -s "$realtarget" "$target"; then 1 if test $ret -eq 0; then 1 if test $from = "y.tab.h"; then 1 from="y_tab.c" 1 dirname=ylwrap$$ 1 cd $dirname 1 case $# in 1 case "$prog" in 1 case "$input" in 1 case "$1" in 1 [\\/]* | ?:[\\/]*) target="$2";; 1 Wrapper for lex/yacc invocations, renaming files as desired. 1 Usage: ylwrap [--help|--version] INPUT [OUTPUT DESIRED]... -- PROGRAM [ARGS]... 1 Report bugs to <[email protected]>. 1 Any number of OUTPUT,DESIRED pairs may be used. 1 *) target="../$2";; 1 #! /bin/sh 1 # ylwrap - wrapper for lex/yacc invocations. 1 # time-stamp-time-zone: "UTC" 1 # time-stamp-start: "scriptversion=" 1 # time-stamp-format: "%:y-%02m-%02d.%02H" 1 # time-stamp-end: "; # UTC" 1 # the same distribution terms that you use for the rest of that program. 1 # the Free Software Foundation; either version 2, or (at your option) 1 # sh-indentation: 2 1 # other machines. But that might take us over the 14-char limit. 1 # mode: shell-script 1 # it under the terms of the GNU General Public License as published by 1 # eval: (add-hook 'write-file-hooks 'time-stamp) 1 # distribute this file as part of a program that contains a 1 # configuration script generated by Autoconf, you may include it under 1 # but WITHOUT ANY WARRANTY; without even the implied warranty of 1 # bugs to <[email protected]> or send patches to 1 # any later version. 1 # along with this program. If not, see <http://www.gnu.org/licenses/>. 1 # You should have received a copy of the GNU General Public License 1 # Written by Tom Tromey <[email protected]>. 1 # This program is free software; you can redistribute it and/or modify 1 # This program is distributed in the hope that it will be useful, 1 # This file is maintained in Automake, please report 1 # The program to run. 1 # The input. 1 # Remove the directory. 1 # Make any relative path in $prog absolute. 1 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1 # Local Variables: 1 # GNU General Public License for more details. 1 # FIXME: add hostname here for parallel makes that run commands on 1 # Copyright (C) 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2004, 2005, 1 # As a special exception to the GNU General Public License, if you 1 # <[email protected]>. 1 # 2007, 2009 Free Software Foundation, Inc. 1 y_tab_nodot="no" 1 while test "$#" -ne 0; do 1 set X $pairlist 1 rm -f "$target" 1 pairlist="$pairlist $1" 1 input_rx=`echo "$input_dir" | sed 's,\\\\,\\\\\\\\,g;s,\\.,\\\\.,g'` 1 input_dir=`echo "$input" | sed -e 's,\([\\/]\)[^\\/]*$,\1,'` 1 if test -f y_tab.c || test -f y_tab.h; then 1 if test "$1" = "--"; then 1 from="y_tab.h" 1 first=yes 1 echo "$2" is unchanged 1 [\\/]* | ?:[\\/]*) ;; 1 [\\/]* | ?:[\\/]*) 1 PROGRAM is program to run 1 OUTPUT is one file PROG generates 1 INPUT is the input file 1 DESIRED is the file we actually want instead of OUTPUT 1 ARGS are passed to PROG 1 0) "$prog" "$input" ;; 1 -v|--v*) 1 -h|--h*) 1 --basedir) 1 *[\\/]*) prog="`pwd`/$prog" ;; 1 *) "$prog" "$@" "$input" ;; 1 # the DOS version of Bison writes out y_tab.c instead of y.tab.c 1 # and y_tab.h instead of y.tab.h. Test to see if this is the case. 1 # The directory holding the input. 1 # Since DOS filename conventions don't allow two dots, 1 # Quote $INPUT_DIR so we can use it in a regexp. 1 # FIXME: really we should care about more than `.' and `\'. 1 y_tab_nodot="yes" 1 shift 2 1 input="`pwd`/$input" 1 if test -f "$from"; then 1 if test $y_tab_nodot = "yes"; then 1 from="$1" 1 first=no 1 exit 1 1 echo "ylwrap $scriptversion" 1 echo "$0: No files given. Try \`$0 --help' for more information." 1>&2 1 cat <<\EOF 1 basedir=$2 1 # Relative path. Make it absolute. 1 # Handle y_tab.c and y_tab.h output by DOS 1 # Absolute path; do nothing. 1 sed -e "/^#/!b" -e "s,$input_rx,," -e "s,$from,$2," \ 1 if test $from = "y.tab.c"; then 1 if test $first = yes; then 1 esac 1 else 1 case "$2" in 1 TARGET=`echo "$2" | sed \ 1 FROM=`echo "$from" | sed \ 1 # parser itself (the first file) should always be updated, 1 # otherwise prepend `../'. 1 # is not specified, we don't want an error when the header 1 # is a blatant hack to let us support using "yacc -d". If -d 1 # instance. 1 # file so we can compare them to existing versions. 1 # file is "missing". 1 # changed. This avoid useless recompilations. However the 1 # because it is the destination of the .y.c rule in the 1 # an absolute srcdir; it is better for it to just mention the 1 # We want to use the real output file name, not yy.lex.c for 1 # We want the include guards to be adjusted too. 1 # We don't want the resulting debug information to point at 1 # We do not want to overwrite a header file if it hasn't 1 # Makefile. Divert the output of all other files to a temporary 1 # If $2 is an absolute path name, then just use that, 1 # Edit out `#line' or `#' directives. 1 # Check whether header files must be updated. 1 # A missing file is only an error for the first file. This 1 # .y file with no path. 1 ret=1 1 fi 1 mv -f "$target" "$realtarget" 1 echo updating "$2" 1 -e "s,$FROM,$TARGET," "$from" >"$target" || ret=$?