Skip to content
Snippets Groups Projects
Commit f8b60a66 authored by Luigi Rizzo's avatar Luigi Rizzo
Browse files

both md5sum and variable substitutions such as ${BUILDSUM:0:8}

are not available in FreeBSD.
For the time being, put in a workaround so we can build the system,
and wait for the result of the discussion on whether we can store
the md5 as a string rather than 4 ints (if so, we won't need more
complex tricks with awk or sed for splitting the md5).

1.4 will be fixed when we decide the issue.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89328 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 68a805b7
No related branches found
No related tags found
Loading
...@@ -21,5 +21,14 @@ then ...@@ -21,5 +21,14 @@ then
echo "#define AST_DEVMODE 1" echo "#define AST_DEVMODE 1"
TMP="${TMP} AST_DEVMODE" TMP="${TMP} AST_DEVMODE"
fi fi
BUILDSUM=`echo ${TMP} | md5sum`
echo "#define AST_BUILDOPT_SUM {0x${BUILDSUM:0:8}, 0x${BUILDSUM:8:8}, 0x${BUILDSUM:16:8}, 0x${BUILDSUM:24:8}}" case ${OSARCH} in
*BSD)
BUILDSUM=`echo ${TMP} | md5`
echo "#define AST_BUILDOPT_SUM {0x0, 0x0, 0x0, 0x0} /* dummy */"
;;
*)
BUILDSUM=`echo ${TMP} | md5sum`
echo "#define AST_BUILDOPT_SUM {0x${BUILDSUM:0:8}, 0x${BUILDSUM:8:8}, 0x${BUILDSUM:16:8}, 0x${BUILDSUM:24:8}}"
;;
esac
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment