mirror of
https://github.com/minio/minio.git
synced 2024-12-25 06:35:56 -05:00
37 lines
699 B
Bash
37 lines
699 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
echo -n "Checking dependencies for Minio.. "
|
||
|
|
||
|
## Check all dependencies are present
|
||
|
MISSING=""
|
||
|
|
||
|
env git --version > /dev/null 2>&1
|
||
|
if [ $? -ne 0 ]; then
|
||
|
MISSING="${MISSING} git"
|
||
|
fi
|
||
|
|
||
|
env hg --version > /dev/null 2>&1
|
||
|
if [ $? -ne 0 ]; then
|
||
|
MISSING="${MISSING} mercurial"
|
||
|
fi
|
||
|
|
||
|
env gcc --version > /dev/null 2>&1
|
||
|
if [ $? -ne 0 ]; then
|
||
|
MISSING="${MISSING} build-essential"
|
||
|
fi
|
||
|
|
||
|
## If dependencies are missing, warn the user and abort
|
||
|
if [ "x${MISSING}" != "x" ]; then
|
||
|
echo "ERROR"
|
||
|
echo
|
||
|
echo "The following build tools are missing:"
|
||
|
echo
|
||
|
echo "** ${MISSING} **"
|
||
|
echo
|
||
|
echo "Please install them "
|
||
|
echo "$ sudo apt-get install ${MISSING}"
|
||
|
echo
|
||
|
exit 1
|
||
|
fi
|
||
|
echo "SUCCESS"
|