more compatible

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1517 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
meep-eep
2005-02-07 16:57:02 +00:00
parent f54c233bf7
commit 671bf515f4
3 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
ESC=`printf "\x1b"`
ESC=`printf '\033'`
ANSI_BOLD="${ESC}[1m"
ANSI_NORMAL="${ESC}[0m"
+2 -1
View File
@@ -15,7 +15,8 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
BUILDLOG=/dev/null
#BUILDLOG=/dev/null
BUILDLOG=/tmp/build.log
TEMPFILE="/tmp/build.$$.tmp"
# Description: prints a command to stdout and then executes it
+5 -5
View File
@@ -287,7 +287,7 @@ EOF
fi
# Check if what the user entered was a number
egrep -q "^[0-9]+$" << EOF
egrep '^[0-9]+$' << EOF > /dev/null
$CHOICE
EOF
if [ $? -ne 0 ]; then
@@ -357,10 +357,10 @@ EOF
SELECTED=" "
fi
if menu_have_choice "$MENU" "$OPTION"; then
printf " %*i. %s %s\n" "${#NUM_OPTIONS}" "$I" \
"$SELECTED" "$TEMP_TITLE"
printf " %${#NUM_OPTIONS}i. %s %s\n" "$I" "$SELECTED" \
"$TEMP_TITLE"
else
printf " %-*s %s (N/A) %s\n" "${#NUM_OPTIONS}" "-" \
printf " %-${#NUM_OPTIONS}s %s (N/A) %s\n" "-" \
"$SELECTED" "$TEMP_TITLE"
fi
done
@@ -378,7 +378,7 @@ EOF
fi
# Check if what the user entered was a number
egrep -q "^[0-9]+$" << EOF
egrep '^[0-9]+$' << EOF > /dev/null
$CHOICE
EOF
if [ $? -ne 0 ]; then