mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-19 03:08:45 +00:00
This is far from optimal, but I just found a FreeBSD system without
md5 installed on it. So look around for all of the different binaries that we could possibly use. I'd wager this gets completely replaced by someone else in less than 24 hours... :) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@146407 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -26,19 +26,13 @@ then
|
|||||||
echo "#define AST_DEVMODE 1"
|
echo "#define AST_DEVMODE 1"
|
||||||
TMP="${TMP} AST_DEVMODE"
|
TMP="${TMP} AST_DEVMODE"
|
||||||
fi
|
fi
|
||||||
|
for x in md5 digest md5sum gmd5sum; do
|
||||||
case ${OSARCH} in # actually we should check build_os
|
BUILDSUM=`echo ${TMP} | $x 2> /dev/null`
|
||||||
*BSD|mingw|darwin*)
|
if [ $? = 0 ]; then
|
||||||
BUILDSUM=`echo ${TMP} | md5 | cut -c1-32`
|
BUILDSUM=`echo ${BUILDSUM} | cut -c1-32`
|
||||||
;;
|
break;
|
||||||
SunOS)
|
fi
|
||||||
BUILDSUM=`echo ${TMP} | digest -a md5 | cut -c1-32`
|
done
|
||||||
;;
|
|
||||||
*)
|
|
||||||
BUILDSUM=`echo ${TMP} | md5sum | cut -c1-32`
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
echo "#define AST_BUILDOPT_SUM \"${BUILDSUM}\""
|
echo "#define AST_BUILDOPT_SUM \"${BUILDSUM}\""
|
||||||
|
|
||||||
echo "#define AST_BUILDOPTS \"${BUILDOPTS}\""
|
echo "#define AST_BUILDOPTS \"${BUILDOPTS}\""
|
||||||
|
Reference in New Issue
Block a user