mirror of https://gitee.com/bigwinds/arangodb
add the ArangoDBStarter to the packages
This commit is contained in:
parent
93e3707a47
commit
4567be8688
|
@ -6,9 +6,11 @@ if python -c "import sys ; sys.exit(sys.platform != 'cygwin')"; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
OSNAME=linux
|
||||
isCygwin=0
|
||||
if test "`uname -o||true`" == "Cygwin"; then
|
||||
isCygwin=1
|
||||
OSNAME=windows
|
||||
fi
|
||||
|
||||
SED=sed
|
||||
|
@ -16,6 +18,7 @@ isMac=0
|
|||
if test "`uname`" == "Darwin"; then
|
||||
isMac=1
|
||||
SED=gsed
|
||||
OSNAME=darwin
|
||||
fi
|
||||
|
||||
# debian mac
|
||||
|
@ -370,6 +373,10 @@ while [ $# -gt 0 ]; do
|
|||
CONFIGURE_OPTIONS="${CONFIGURE_OPTIONS} -DOPENSSL_USE_STATIC_LIBS=TRUE"
|
||||
;;
|
||||
|
||||
--downloadStarter)
|
||||
shift
|
||||
DOWNLOAD_STARTER=1
|
||||
;;
|
||||
|
||||
--enterprise)
|
||||
shift
|
||||
|
@ -602,7 +609,24 @@ if test -n "${ENTERPRISE_GIT_URL}" ; then
|
|||
)
|
||||
fi
|
||||
|
||||
|
||||
if test ${DOWNLOAD_STARTER} == 1; then
|
||||
# we utilize https://developer.github.com/v3/repos/ to get the newest release:
|
||||
STARTER_REV=`curl -s https://api.github.com/repos/arangodb-helper/ArangoDBStarter/releases |grep tag_name |head -n 1 |${SED} -e "s;.*: ;;" -e 's;";;g' -e 's;,;;'`
|
||||
STARTER_URL=`curl -s https://api.github.com/repos/arangodb-helper/ArangoDBStarter/releases/tags/${STARTER_REV} |grep browser_download_url |grep "${OSNAME}" |${SED} -e "s;.*: ;;" -e 's;";;g' -e 's;,;;'`
|
||||
if test -n "${STARTER_URL}"; then
|
||||
curl -LO "${STARTER_URL}"
|
||||
FN=`echo ${STARTER_URL} |${SED} "s;.*/;;"`
|
||||
if test "${isCygwin}" == 1; then
|
||||
TN=ArangoDBStarter.exe
|
||||
else
|
||||
TN=ArangoDBStarter
|
||||
fi
|
||||
mkdir -p ${BUILD_DIR}
|
||||
mv ${FN} ${BUILD_DIR}/${TN}
|
||||
chmod a+x ${BUILD_DIR}/${TN}
|
||||
fi
|
||||
CONFIGURE_OPTIONS="${CONFIGURE_OPTIONS} -DTHIRDPARTY_SBIN=${BUILD_DIR}/${TN} "
|
||||
fi
|
||||
|
||||
test -d ${BUILD_DIR} || mkdir ${BUILD_DIR}
|
||||
cd ${BUILD_DIR}
|
||||
|
|
|
@ -226,3 +226,9 @@ if (MSVC)
|
|||
install (FILES "${LIB_EAY_RELEASE_DLL}" DESTINATION "${CMAKE_INSTALL_BINDIR}/" COMPONENT Libraries)
|
||||
install (FILES "${SSL_EAY_RELEASE_DLL}" DESTINATION "${CMAKE_INSTALL_BINDIR}/" COMPONENT Libraries)
|
||||
endif()
|
||||
|
||||
|
||||
if (THIRDPARTY_SBIN)
|
||||
install(FILES ${THIRDPARTY_SBIN}
|
||||
DESTINATION "${CMAKE_INSTALL_SBINDIR}")
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue