fix a bug in init_bios_info.

This commit is contained in:
okuji committed 2000-05-05 11:31:43 +00:00
1 parent 5aef9e78a5
commit 84f224a0d7
6 files changed
+147 -126

No files matched your search

+6 -6
View File
@@ -2,7 +2,7 @@
# Wrapper for compilers which do not understand `-c -o'.
# Copyright (C) 1999 Free Software Foundation, Inc.
# Copyright (C) 1999, 2000 Free Software Foundation, Inc.
# Written by Tom Tromey <tromey@cygnus.com>.
#
# This program is free software; you can redistribute it and/or modify
@@ -23,7 +23,7 @@
# compile PROGRAM [ARGS]...
# `-o FOO.o' is removed from the args passed to the actual compile.
prog="$1"
prog=$1
shift
ofile=
@@ -32,11 +32,11 @@ args=
while test $# -gt 0; do
case "$1" in
-o)
ofile="$2"
ofile=$2
shift
;;
*.c)
cfile="$1"
cfile=$1
args="$args $1"
;;
*)
@@ -57,10 +57,10 @@ test -z "$cfile" && {
}
# Name of file we expect compiler to create.
cofile="`echo $cfile | sed -e 's|^.*/||' -e 's/\.c$/.o/'`"
cofile=`echo $cfile | sed -e 's|^.*/||' -e 's/\.c$/.o/'`
# Create the lock directory.
lockdir="`echo $ofile | sed -e 's|/|_|g'`"
lockdir=`echo $ofile | sed -e 's|/|_|g'`
while true; do
if mkdir $lockdir > /dev/null 2>&1; then
break