mirror of
https://github.com/haiwen/seafile.git
synced 2025-01-05 10:26:43 +08:00
Use uname command to detect Darwin platform
This commit is contained in:
parent
41e8968929
commit
9ee615bce0
@ -5,7 +5,7 @@
|
||||
: ${AUTOHEADER=autoheader}
|
||||
: ${AUTOMAKE=automake}
|
||||
: ${ACLOCAL=aclocal}
|
||||
if test "${TERM_PROGRAM}" != "Apple_Terminal" ; then
|
||||
if test "$(uname)" != "Darwin"; then
|
||||
: ${LIBTOOLIZE=libtoolize}
|
||||
else
|
||||
: ${LIBTOOLIZE=glibtoolize}
|
||||
@ -51,7 +51,7 @@ DIE=0
|
||||
DIE=1
|
||||
}
|
||||
|
||||
if [[ ! ${TERM_PROGRAM} =~ ^Apple ]] ; then
|
||||
if test "$(uname)" != "Darwin"; then
|
||||
(grep "^AC_PROG_LIBTOOL" $CONFIGURE >/dev/null) && {
|
||||
($LIBTOOL --version) < /dev/null > /dev/null 2>&1 || {
|
||||
echo
|
||||
@ -75,7 +75,7 @@ if grep "^AM_[A-Z0-9_]\{1,\}_GETTEXT" "$CONFIGURE" >/dev/null; then
|
||||
GETTEXTIZE="gettextize"
|
||||
GETTEXTIZE_URL="ftp://alpha.gnu.org/gnu/gettext-0.10.35.tar.gz"
|
||||
fi
|
||||
|
||||
|
||||
$GETTEXTIZE --version < /dev/null > /dev/null 2>&1
|
||||
if test $? -ne 0; then
|
||||
echo
|
||||
@ -97,7 +97,7 @@ aclocalinclude="$aclocalinclude -I m4"
|
||||
|
||||
if test x"$MSYSTEM" = x"MINGW32"; then
|
||||
aclocalinclude="$aclocalinclude -I /local/share/aclocal"
|
||||
elif [[ ${TERM_PROGRAM} =~ ^Apple ]] ; then
|
||||
elif test "$(uname)" = "Darwin"; then
|
||||
aclocalinclude="$aclocalinclude -I /opt/local/share/aclocal"
|
||||
fi
|
||||
|
||||
|
@ -43,7 +43,7 @@ else
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING(for Mac)
|
||||
if test "$TERM_PROGRAM" = "Apple_Terminal"; then
|
||||
if test "$(uname)" = "Darwin"; then
|
||||
bmac=true
|
||||
AC_MSG_RESULT(compile in mac)
|
||||
else
|
||||
|
@ -3,12 +3,12 @@
|
||||
if [ $# != "2" ]; then
|
||||
echo "$0 <old_version> <new_version>"
|
||||
exit
|
||||
fi
|
||||
fi
|
||||
|
||||
old_ver=$1
|
||||
new_ver=$2
|
||||
|
||||
if [[ "${TERM_PROGRAM}" =~ ^Apple ]]; then
|
||||
if test "$(uname)" = "Darwin"; then
|
||||
sed -i '' -e "s|$old_ver|$new_ver|" web/setup_mac.py
|
||||
sed -i '' -e "s|VERSION=$old_ver|VERSION=$new_ver|" setupmac.sh
|
||||
sed -i '' -e "s|<string>$old_ver</string>|<string>$new_ver</string>|" gui/mac/seafile/seafile/*.plist
|
||||
|
Loading…
Reference in New Issue
Block a user