git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Handle cash changes properly.
[stg.git]
/
projects
/
rscriptd
/
build
diff --git
a/projects/rscriptd/build
b/projects/rscriptd/build
index 3b73000dc128369b54c831b86d9a79edb4c80104..5af638ebb34c42f6140e0a1c049e8d9042987cc2 100755
(executable)
--- a/
projects/rscriptd/build
+++ b/
projects/rscriptd/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;;
@@
-61,7
+61,7
@@
fi
if [ "$OS" = "unknown" ]
then
printf "#############################################################################\n"
if [ "$OS" = "unknown" ]
then
printf "#############################################################################\n"
- printf "# Sorry, but rscriptd
currently supported by Linux, FreeBSD 4.x, 5.x, 6.x
#\n"
+ printf "# Sorry, but rscriptd
is currently supported by Linux, FreeBSD and Darwin.
#\n"
printf "#############################################################################\n"
exit 1
fi
printf "#############################################################################\n"
exit 1
fi