Trying to use a "simple" if-else in fink scripts; WHAT am I missing??
Sample scripts do have plenty of if's, what's so special with this:
if test `uname -r` \< "8.7.0"; then
sh: -c: line 2: syntax error: unexpected end of file
### execution of if failed, exit code 2
...
# Note: the 10.4 readline is from the OS level, not fink.
#
# TO-DO: Is there a way to make the package for both 10.3 (without
readline, or with patch)
# and 10.4 (with built-in readline) at once?
#
if test `uname -r` \< "8.7.0"; then
echo "Testing... A"
else
echo "Testing... B"
fi
if test `uname -r` \< "8.7.0"; then
export MACOSX_DEPLOYMENT_TARGET="10.3"; \
cd src; \
make all MYCFLAGS="-fno-common -DLUA_USE_MACOSX"
else
export MACOSX_DEPLOYMENT_TARGET="10.4"; \
cd src; \
make all MYCFLAGS="-fno-common -DLUA_USE_MACOSX -
DLUA_USE_READLINE" MYLIBS="-lreadline"
fi
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Fink-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-devel