From 71323643c0a44d402b0eed448c46540e3396408f Mon Sep 17 00:00:00 2001 From: scuri Date: Sat, 26 Feb 2011 02:27:16 +0000 Subject: *** empty log message *** --- tec_uname | 37 ++++++++++++++++++++++++++++--------- 1 file changed, 28 insertions(+), 9 deletions(-) (limited to 'tec_uname') diff --git a/tec_uname b/tec_uname index acf22b0..d885215 100644 --- a/tec_uname +++ b/tec_uname @@ -124,14 +124,33 @@ ComputeTecUname() fi fi fi - - TU_DEBUG=1 - if [ $TU_DEBUG == 1 ]; then - echo ' ' - echo ' Info:' - echo 'TEC_SYSNAME='$TEC_SYSNAME - echo 'TEC_SYSVERSION='$TEC_SYSVERSION - echo 'TEC_SYSMINOR='$TEC_SYSMINOR - echo 'TEC_SYSARCH='$TEC_SYSARCH +} + +ComputeSystemPaths() +{ + if [ $TEC_SYSARCH == x64 ]; then + if [ -d /usr/lib64 ]; then + TEC_SYSTEM_LIB=/usr/lib64 + else + TEC_SYSTEM_LIB=/usr/lib + fi + else + TEC_SYSTEM_LIB=/usr/lib fi + + TEC_SYSTEM_INC=/usr/include + + TEC_LUA_LIB=$TEC_SYSTEM_LIB/lua/5.1 +} + +PrintInfo() +{ + echo ' ' + echo ' Info:' + echo 'TEC_SYSNAME='$TEC_SYSNAME + echo 'TEC_SYSVERSION='$TEC_SYSVERSION + echo 'TEC_SYSMINOR='$TEC_SYSMINOR + echo 'TEC_SYSARCH='$TEC_SYSARCH + echo 'TEC_SYSTEM_LIB='$TEC_SYSTEM_LIB + echo 'TEC_SYSTEM_INC='$TEC_SYSTEM_INC } -- cgit v1.2.3