diff --git a/sc2/build/unix/ansi b/sc2/build/unix/ansi index a4bbf9757..ac5b97ffe 100644 --- a/sc2/build/unix/ansi +++ b/sc2/build/unix/ansi @@ -1,4 +1,4 @@ -ESC=`printf "\x1b"` +ESC=`printf '\033'` ANSI_BOLD="${ESC}[1m" ANSI_NORMAL="${ESC}[0m" diff --git a/sc2/build/unix/config_functions b/sc2/build/unix/config_functions index 884c3ecfa..81aa25169 100644 --- a/sc2/build/unix/config_functions +++ b/sc2/build/unix/config_functions @@ -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 diff --git a/sc2/build/unix/menu_functions b/sc2/build/unix/menu_functions index 236c6b0c4..c60393385 100644 --- a/sc2/build/unix/menu_functions +++ b/sc2/build/unix/menu_functions @@ -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