git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Backported some changes from 2.5.
[stg.git]
/
projects
/
sgauthstress
/
build
diff --git
a/projects/sgauthstress/build
b/projects/sgauthstress/build
index 8da9ac678a21ec9cfb9dc3c6aa5ff45aad638e80..8f3395f91ef149d49c93b2d6964299243c54d022 100755
(executable)
--- a/
projects/sgauthstress/build
+++ b/
projects/sgauthstress/build
@@
-7,7
+7,8
@@
OS=unknown
sys=`uname -s`
OS=unknown
sys=`uname -s`
-release=`uname -r | cut -b1`
+release=`uname -r`
+major=`printf "%s" "$release" | cut -d. -f1`
BUILD_DIR=`pwd`
CONFFILE="../../Makefile.conf"
PREFIX="/"
BUILD_DIR=`pwd`
CONFFILE="../../Makefile.conf"
PREFIX="/"
@@
-35,13
+36,12
@@
LDFLAGS="$LDFLAGS -L/usr/local/lib"
if [ "$sys" = "Linux" ]
then
OS=linux
if [ "$sys" = "Linux" ]
then
OS=linux
- release=""
MAKE="make"
fi
if [ "$sys" = "FreeBSD" ]
then
MAKE="make"
fi
if [ "$sys" = "FreeBSD" ]
then
- case $
release
in
+ case $
major
in
4) OS=bsd;;
5) OS=bsd5;;
6) OS=bsd5;;
4) OS=bsd;;
5) OS=bsd5;;
6) OS=bsd5;;