Changeset 333
- Timestamp:
- 07/06/07 22:15:46 (1 year ago)
- Files:
-
- wifidog/wifidog-client/config/depcomp (modified) (5 diffs)
- wifidog/wifidog-client/config/install-sh (modified) (14 diffs)
- wifidog/wifidog-client/config/missing (modified) (16 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
wifidog/wifidog-client/config/depcomp
r218 r333 2 2 # depcomp - compile a program generating dependencies as side-effects 3 3 4 scriptversion=2005-07-09.11 5 6 # Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc. 4 scriptversion=2006-10-15.18 5 6 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006 Free Software 7 # Foundation, Inc. 7 8 8 9 # This program is free software; you can redistribute it and/or modify … … 92 93 ## we want. Yay! Note: for some reason libtool 1.4 doesn't like 93 94 ## it if -MD -MP comes after the -MF stuff. Hmm. 94 "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" 95 ## Unfortunately, FreeBSD c89 acceptance of flags depends upon 96 ## the command line argument order; so add the flags where they 97 ## appear in depend2.am. Note that the slowdown incurred here 98 ## affects only configure: in makefiles, %FASTDEP% shortcuts this. 99 for arg 100 do 101 case $arg in 102 -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; 103 *) set fnord "$@" "$arg" ;; 104 esac 105 shift # fnord 106 shift # $arg 107 done 108 "$@" 95 109 stat=$? 96 110 if test $stat -eq 0; then : … … 277 291 ;; 278 292 293 hp2) 294 # The "hp" stanza above does not work with aCC (C++) and HP's ia64 295 # compilers, which have integrated preprocessors. The correct option 296 # to use with these is +Maked; it writes dependencies to a file named 297 # 'foo.d', which lands next to the object file, wherever that 298 # happens to be. 299 # Much of this is similar to the tru64 case; see comments there. 300 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` 301 test "x$dir" = "x$object" && dir= 302 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` 303 if test "$libtool" = yes; then 304 tmpdepfile1=$dir$base.d 305 tmpdepfile2=$dir.libs/$base.d 306 "$@" -Wc,+Maked 307 else 308 tmpdepfile1=$dir$base.d 309 tmpdepfile2=$dir$base.d 310 "$@" +Maked 311 fi 312 stat=$? 313 if test $stat -eq 0; then : 314 else 315 rm -f "$tmpdepfile1" "$tmpdepfile2" 316 exit $stat 317 fi 318 319 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" 320 do 321 test -f "$tmpdepfile" && break 322 done 323 if test -f "$tmpdepfile"; then 324 sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile" 325 # Add `dependent.h:' lines. 326 sed -ne '2,${; s/^ *//; s/ \\*$//; s/$/:/; p;}' "$tmpdepfile" >> "$depfile" 327 else 328 echo "#dummy" > "$depfile" 329 fi 330 rm -f "$tmpdepfile" "$tmpdepfile2" 331 ;; 332 279 333 tru64) 280 334 # The Tru64 compiler uses -MD to generate dependencies as a side … … 289 343 if test "$libtool" = yes; then 290 344 # With Tru64 cc, shared objects can also be used to make a 291 # static library. This mec anism is used in libtool 1.4 series to345 # static library. This mechanism is used in libtool 1.4 series to 292 346 # handle both shared and static libraries in a single compilation. 293 347 # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. … … 295 349 # With libtool 1.5 this exception was removed, and libtool now 296 350 # generates 2 separate objects for the 2 libraries. These two 297 # compilations output dependencies in in$dir.libs/$base.o.d and351 # compilations output dependencies in $dir.libs/$base.o.d and 298 352 # in $dir$base.o.d. We have to check for both files, because 299 353 # one of the two compilations can be disabled. We should prefer wifidog/wifidog-client/config/install-sh
r218 r333 2 2 # install - install a program, script, or datafile 3 3 4 scriptversion=200 5-05-14.224 scriptversion=2006-10-14.15 5 5 6 6 # This originates from X11R5 (mit/util/scripts/install.sh), which was … … 40 40 # 41 41 # This script is compatible with the BSD install script, but was written 42 # from scratch. It can only install one file at a time, a restriction 43 # shared with many OS's install programs. 42 # from scratch. 43 44 nl=' 45 ' 46 IFS=" "" $nl" 44 47 45 48 # set DOITPROG to echo to test this script … … 47 50 # Don't use :- since 4.3BSD and earlier shells don't like it. 48 51 doit="${DOITPROG-}" 49 50 # put in absolute paths if you don't have them in your path; or use env. vars. 52 if test -z "$doit"; then 53 doit_exec=exec 54 else 55 doit_exec=$doit 56 fi 57 58 # Put in absolute file names if you don't have them in your path; 59 # or use environment vars. 51 60 52 61 mvprog="${MVPROG-mv}" … … 59 68 mkdirprog="${MKDIRPROG-mkdir}" 60 69 61 chmodcmd="$chmodprog 0755" 70 posix_glob= 71 posix_mkdir= 72 73 # Desired mode of installed file. 74 mode=0755 75 76 chmodcmd=$chmodprog 62 77 chowncmd= 63 78 chgrpcmd= … … 96 111 " 97 112 98 while test -n "$1"; do113 while test $# -ne 0; do 99 114 case $1 in 100 115 -c) shift … … 112 127 --help) echo "$usage"; exit $?;; 113 128 114 -m) chmodcmd="$chmodprog $2" 115 shift 116 shift 129 -m) mode=$2 130 shift 131 shift 132 case $mode in 133 *' '* | *' '* | *' 134 '* | *'*'* | *'?'* | *'['*) 135 echo "$0: invalid mode: $mode" >&2 136 exit 1;; 137 esac 117 138 continue;; 118 139 … … 137 158 --version) echo "$0 $scriptversion"; exit $?;; 138 159 139 *) # When -d is used, all remaining arguments are directories to create. 140 # When -t is used, the destination is already specified. 141 test -n "$dir_arg$dstarg" && break 142 # Otherwise, the last argument is the destination. Remove it from $@. 143 for arg 144 do 145 if test -n "$dstarg"; then 146 # $@ is not empty: it contains at least $arg. 147 set fnord "$@" "$dstarg" 148 shift # fnord 149 fi 150 shift # arg 151 dstarg=$arg 152 done 160 --) shift 153 161 break;; 162 163 -*) echo "$0: invalid option: $1" >&2 164 exit 1;; 165 166 *) break;; 154 167 esac 155 168 done 156 169 157 if test -z "$1"; then 170 if test $# -ne 0 && test -z "$dir_arg$dstarg"; then 171 # When -d is used, all remaining arguments are directories to create. 172 # When -t is used, the destination is already specified. 173 # Otherwise, the last argument is the destination. Remove it from $@. 174 for arg 175 do 176 if test -n "$dstarg"; then 177 # $@ is not empty: it contains at least $arg. 178 set fnord "$@" "$dstarg" 179 shift # fnord 180 fi 181 shift # arg 182 dstarg=$arg 183 done 184 fi 185 186 if test $# -eq 0; then 158 187 if test -z "$dir_arg"; then 159 188 echo "$0: no input file specified." >&2 … … 165 194 fi 166 195 196 if test -z "$dir_arg"; then 197 trap '(exit $?); exit' 1 2 13 15 198 199 # Set umask so as not to create temps with too-generous modes. 200 # However, 'strip' requires both read and write access to temps. 201 case $mode in 202 # Optimize common cases. 203 *644) cp_umask=133;; 204 *755) cp_umask=22;; 205 206 *[0-7]) 207 if test -z "$stripcmd"; then 208 u_plus_rw= 209 else 210 u_plus_rw='% 200' 211 fi 212 cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; 213 *) 214 if test -z "$stripcmd"; then 215 u_plus_rw= 216 else 217 u_plus_rw=,u+rw 218 fi 219 cp_umask=$mode$u_plus_rw;; 220 esac 221 fi 222 167 223 for src 168 224 do … … 174 230 if test -n "$dir_arg"; then 175 231 dst=$src 176 src= 177 178 if test -d "$dst"; then 179 mkdircmd=: 180 chmodcmd= 181 else 182 mkdircmd=$mkdirprog 183 fi 232 dstdir=$dst 233 test -d "$dstdir" 234 dstdir_status=$? 184 235 else 236 185 237 # Waiting for this to be detected by the "$cpprog $src $dsttmp" command 186 238 # might cause directories to be created, which would be especially bad … … 209 261 exit 1 210 262 fi 211 dst=$dst/`basename "$src"` 263 dstdir=$dst 264 dst=$dstdir/`basename "$src"` 265 dstdir_status=0 266 else 267 # Prefer dirname, but fall back on a substitute if dirname fails. 268 dstdir=` 269 (dirname "$dst") 2>/dev/null || 270 expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 271 X"$dst" : 'X\(//\)[^/]' \| \ 272 X"$dst" : 'X\(//\)$' \| \ 273 X"$dst" : 'X\(/\)' \| . 2>/dev/null || 274 echo X"$dst" | 275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 276 s//\1/ 277 q 278 } 279 /^X\(\/\/\)[^/].*/{ 280 s//\1/ 281 q 282 } 283 /^X\(\/\/\)$/{ 284 s//\1/ 285 q 286 } 287 /^X\(\/\).*/{ 288 s//\1/ 289 q 290 } 291 s/.*/./; q' 292 ` 293 294 test -d "$dstdir" 295 dstdir_status=$? 212 296 fi 213 297 fi 214 298 215 # This sed command emulates the dirname command. 216 dstdir=`echo "$dst" | sed -e 's,/*$,,;s,[^/]*$,,;s,/*$,,;s,^$,.,'` 217 218 # Make sure that the destination directory exists. 219 220 # Skip lots of stat calls in the usual case. 221 if test ! -d "$dstdir"; then 222 defaultIFS=' 223 ' 224 IFS="${IFS-$defaultIFS}" 225 226 oIFS=$IFS 227 # Some sh's can't handle IFS=/ for some reason. 228 IFS='%' 229 set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'` 230 shift 231 IFS=$oIFS 232 233 pathcomp= 234 235 while test $# -ne 0 ; do 236 pathcomp=$pathcomp$1 299 obsolete_mkdir_used=false 300 301 if test $dstdir_status != 0; then 302 case $posix_mkdir in 303 '') 304 # Create intermediate dirs using mode 755 as modified by the umask. 305 # This is like FreeBSD 'install' as of 1997-10-28. 306 umask=`umask` 307 case $stripcmd.$umask in 308 # Optimize common cases. 309 *[2367][2367]) mkdir_umask=$umask;; 310 .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; 311 312 *[0-7]) 313 mkdir_umask=`expr $umask + 22 \ 314 - $umask % 100 % 40 + $umask % 20 \ 315 - $umask % 10 % 4 + $umask % 2 316 `;; 317 *) mkdir_umask=$umask,go-w;; 318 esac 319 320 # With -d, create the new directory with the user-specified mode. 321 # Otherwise, rely on $mkdir_umask. 322 if test -n "$dir_arg"; then 323 mkdir_mode=-m$mode 324 else 325 mkdir_mode= 326 fi 327 328 posix_mkdir=false 329 case $umask in 330 *[123567][0-7][0-7]) 331 # POSIX mkdir -p sets u+wx bits regardless of umask, which 332 # is incompatible with FreeBSD 'install' when (umask & 300) != 0. 333 ;; 334 *) 335 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ 336 trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 337 338 if (umask $mkdir_umask && 339 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 340 then 341 if test -z "$dir_arg" || { 342 # Check for POSIX incompatibilities with -m. 343 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or 344 # other-writeable bit of parent directory when it shouldn't. 345 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. 346 ls_ld_tmpdir=`ls -ld "$tmpdir"` 347 case $ls_ld_tmpdir in 348 d????-?r-*) different_mode=700;; 349 d????-?--*) different_mode=755;; 350 *) false;; 351 esac && 352 $mkdirprog -m$different_mode -p -- "$tmpdir" && { 353 ls_ld_tmpdir_1=`ls -ld "$tmpdir"` 354 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" 355 } 356 } 357 then posix_mkdir=: 358 fi 359 rmdir "$tmpdir/d" "$tmpdir" 360 else 361 # Remove any dirs left behind by ancient mkdir implementations. 362 rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null 363 fi 364 trap '' 0;; 365 esac;; 366 esac 367 368 if 369 $posix_mkdir && ( 370 umask $mkdir_umask && 371 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" 372 ) 373 then : 374 else 375 376 # The umask is ridiculous, or mkdir does not conform to POSIX, 377 # or it failed possibly due to a race condition. Create the 378 # directory the slow way, step by step, checking for races as we go. 379 380 case $dstdir in 381 /*) prefix=/ ;; 382 -*) prefix=./ ;; 383 *) prefix= ;; 384 esac 385 386 case $posix_glob in 387 '') 388 if (set -f) 2>/dev/null; then 389 posix_glob=true 390 else 391 posix_glob=false 392 fi ;; 393 esac 394 395 oIFS=$IFS 396 IFS=/ 397 $posix_glob && set -f 398 set fnord $dstdir 237 399 shift 238 if test ! -d "$pathcomp"; then 239 $mkdirprog "$pathcomp" 240 # mkdir can fail with a `File exist' error in case several 241 # install-sh are creating the directory concurrently. This 242 # is OK. 243 test -d "$pathcomp" || exit 400 $posix_glob && set +f 401 IFS=$oIFS 402 403 prefixes= 404 405 for d 406 do 407 test -z "$d" && continue 408 409 prefix=$prefix$d 410 if test -d "$prefix"; then 411 prefixes= 412 else 413 if $posix_mkdir; then 414 (umask=$mkdir_umask && 415 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break 416 # Don't fail if two instances are running concurrently. 417 test -d "$prefix" || exit 1 418 else 419 case $prefix in 420 *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; 421 *) qprefix=$prefix;; 422 esac 423 prefixes="$prefixes '$qprefix'" 424 fi 425 fi 426 prefix=$prefix/ 427 done 428 429 if test -n "$prefixes"; then 430 # Don't fail if two instances are running concurrently. 431 (umask $mkdir_umask && 432 eval "\$doit_exec \$mkdirprog $prefixes") || 433 test -d "$dstdir" || exit 1 434 obsolete_mkdir_used=true 244 435 fi 245 pathcomp=$pathcomp/ 246 done 436 fi 247 437 fi 248 438 249 439 if test -n "$dir_arg"; then 250 $doit $mkdircmd "$dst" \ 251 && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \ 252 && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \ 253 && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \ 254 && { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; } 255 440 { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && 441 { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && 442 { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || 443 test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 256 444 else 257 dstfile=`basename "$dst"`258 445 259 446 # Make a couple of temp file names in the proper directory. … … 263 450 # Trap to clean up those temp files at exit. 264 451 trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 265 trap '(exit $?); exit' 1 2 13 15266 452 267 453 # Copy the file name to the temp name. 268 $doit $cpprog "$src" "$dsttmp"&&454 (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && 269 455 270 456 # and set any options; do chmod last to preserve setuid bits. … … 277 463 && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \ 278 464 && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \ 279 && { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } &&465 && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && 280 466 281 467 # Now rename the file to the real destination. 282 { $doit $mvcmd -f "$dsttmp" "$dst dir/$dstfile" 2>/dev/null \468 { $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null \ 283 469 || { 284 470 # The rename failed, perhaps because mv can't rename something else … … 292 478 # file should still install successfully. 293 479 { 294 if test -f "$dstdir/$dstfile"; then 295 $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \ 296 || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \ 480 if test -f "$dst"; then 481 $doit $rmcmd -f "$dst" 2>/dev/null \ 482 || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null \ 483 && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }; }\ 297 484 || { 298 echo "$0: cannot unlink or rename $dst dir/$dstfile" >&2485 echo "$0: cannot unlink or rename $dst" >&2 299 486 (exit 1); exit 1 300 487 } … … 305 492 306 493 # Now rename the file to the real destination. 307 $doit $mvcmd "$dsttmp" "$dst dir/$dstfile"494 $doit $mvcmd "$dsttmp" "$dst" 308 495 } 309 } 310 fi || { (exit 1); exit 1; } 496 } || exit 1 497 498 trap '' 0 499 fi 311 500 done 312 313 # The final little trick to "correctly" pass the exit status to the exit trap.314 {315 (exit 0); exit 0316 }317 501 318 502 # Local variables: wifidog/wifidog-client/config/missing
r218 r333 2 2 # Common stub for a few missing GNU programs while installing. 3 3 4 scriptversion=200 5-06-08.215 6 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005 4 scriptversion=2006-05-10.23 5 6 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006 7 7 # Free Software Foundation, Inc. 8 8 # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. … … 34 34 35 35 run=: 36 sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p' 37 sed_minuso='s/.* -o \([^ ]*\).*/\1/p' 36 38 37 39 # In the cases where this matters, `missing' is being run in the … … 45 47 msg="missing on your system" 46 48 47 case "$1"in49 case $1 in 48 50 --run) 49 51 # Try to run requested program, and just exit if it succeeds. … … 78 80 autoconf touch file \`configure' 79 81 autoheader touch file \`config.h.in' 82 autom4te touch the output file, or create a stub one 80 83 automake touch all \`Makefile.in' files 81 84 bison create \`y.tab.[ch]', if possible, from existing .[ch] … … 107 110 # don't have it and --version was passed (most likely to detect 108 111 # the program). 109 case "$1"in112 case $1 in 110 113 lex|yacc) 111 114 # Not GNU programs, they don't have --version. … … 136 139 # If it does not exist, or fails to run (possibly an outdated version), 137 140 # try to emulate it. 138 case "$1"in141 case $1 in 139 142 aclocal*) 140 143 echo 1>&2 "\ … … 165 168 touch_files= 166 169 for f in $files; do 167 case "$f"in170 case $f in 168 171 *:*) touch_files="$touch_files "`echo "$f" | 169 172 sed -e 's/^[^:]*://' -e 's/:.*//'`;; … … 193 196 archive site." 194 197 195 file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`196 test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`198 file=`echo "$*" | sed -n "$sed_output"` 199 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` 197 200 if test -f "$file"; then 198 201 touch $file … … 215 218 \`Bison' from any GNU archive site." 216 219 rm -f y.tab.c y.tab.h 217 if [ $# -ne 1 ]; then220 if test $# -ne 1; then 218 221 eval LASTARG="\${$#}" 219 case "$LASTARG"in222 case $LASTARG in 220 223 *.y) 221 224 SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` 222 if [ -f "$SRCFILE" ]; then225 if test -f "$SRCFILE"; then 223 226 cp "$SRCFILE" y.tab.c 224 227 fi 225 228 SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` 226 if [ -f "$SRCFILE" ]; then229 if test -f "$SRCFILE"; then 227 230 cp "$SRCFILE" y.tab.h 228 231 fi … … 230 233 esac 231 234 fi 232 if [ ! -f y.tab.h ]; then235 if test ! -f y.tab.h; then 233 236 echo >y.tab.h 234 237 fi 235 if [ ! -f y.tab.c ]; then238 if test ! -f y.tab.c; then 236 239 echo 'main() { return 0; }' >y.tab.c 237 240 fi … … 245 248 \`Flex' from any GNU archive site." 246 249 rm -f lex.yy.c 247 if [ $# -ne 1 ]; then250 if test $# -ne 1; then 248 251 eval LASTARG="\${$#}" 249 case "$LASTARG"in252 case $LASTARG in 250 253 *.l) 251 254 SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` 252 if [ -f "$SRCFILE" ]; then255 if test -f "$SRCFILE"; then 253 256 cp "$SRCFILE" lex.yy.c 254 257 fi … … 256 259 esac 257 260 fi 258 if [ ! -f lex.yy.c ]; then261 if test ! -f lex.yy.c; then 259 262 echo 'main() { return 0; }' >lex.yy.c 260 263 fi … … 268 271 effect. You can get \`Help2man' from any GNU archive site." 269 272 270 file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` 271 if test -z "$file"; then 272 file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'` 273 fi 274 if [ -f "$file" ]; then 273 file=`echo "$*" | sed -n "$sed_output"` 274 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` 275 if test -f "$file"; then 275 276 touch $file 276 277 else … … 290 291 the \`GNU make' package. Grab either from any GNU archive site." 291 292 # The file to touch is that specified with -o ... 292 file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` 293 file=`echo "$*" | sed -n "$sed_output"` 294 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` 293 295 if test -z "$file"; then 294 296 # ... or it is the one specified with @setfilename ... 295 297 infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` 296 file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile` 298 file=`sed -n ' 299 /^@setfilename/{ 300 s/.* \([^ ]*\) *$/\1/ 301 p 302 q 303 }' $infile` 297 304 # ... or it is derived from the source name (dir/f.texi becomes f.info) 298 305 test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info … … 318 325 firstarg="$1" 319 326 if shift; then 320 case "$firstarg"in327 case $firstarg in 321 328 *o*) 322 329 firstarg=`echo "$firstarg" | sed s/o//` … … 324 331 ;; 325 332 esac 326 case "$firstarg"in333 case $firstarg in 327 334 *h*) 328 335 firstarg=`echo "$firstarg" | sed s/h//`
