mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-11-14 00:10:39 +00:00
Merge pull request #131 from smcv/tput
build: if tput fails, fall back to a reasonable text width
This commit is contained in:
commit
26ed99e851
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -1231,7 +1231,7 @@ release:
|
||||||
CLIENT_CFLAGS="$(CLIENT_CFLAGS)" SERVER_CFLAGS="$(SERVER_CFLAGS)" V=$(V)
|
CLIENT_CFLAGS="$(CLIENT_CFLAGS)" SERVER_CFLAGS="$(SERVER_CFLAGS)" V=$(V)
|
||||||
|
|
||||||
ifneq ($(call bin_path, tput),)
|
ifneq ($(call bin_path, tput),)
|
||||||
TERM_COLUMNS=$(shell echo $$((`tput cols`-4)))
|
TERM_COLUMNS=$(shell if c=`tput cols`; then echo $$(($$c-4)); else echo 76; fi)
|
||||||
else
|
else
|
||||||
TERM_COLUMNS=76
|
TERM_COLUMNS=76
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue