fix of build troubles on x86_64

This commit is contained in:
Ondrej Vasik 2008-02-14 13:17:37 +00:00
parent 5873d0b4e0
commit 1be1358be9
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ if ($?TERM) then
endif
endif
if ( -e "/etc/DIR_COLORS.256color" ) then
if ( "`tput colors`" == "256" ) then
if ( "`infocmp $TERM | sed -n 's/.*colors#\([0-9]\+\).*/\1/p'`" == "256" ) then
set COLORS=/etc/DIR_COLORS.256color
endif
endif

View File

@ -7,7 +7,7 @@ if [ -z "$LS_COLORS" ]; then
COLORS=/etc/DIR_COLORS
[ -e "/etc/DIR_COLORS.$TERM" ] && COLORS="/etc/DIR_COLORS.$TERM"
[ -e "/etc/DIR_COLORS.256color" ] && \
[ "`tput colors 2>/dev/null`" = "256" ] && \
[ "`infocmp $TERM | sed -n 's/.*colors#\([0-9]\+\).*/\1/p'`" = "256" ] && \
COLORS="/etc/DIR_COLORS.256color"
[ -e "$HOME/.dircolors" ] && COLORS="$HOME/.dircolors"
[ -e "$HOME/.dir_colors" ] && COLORS="$HOME/.dir_colors"