diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-17 06:07:57 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-17 06:07:57 +0000 |
commit | 21b6d957507b661a88469995c38c920494551d1f (patch) | |
tree | a2ac255dd7104621bc008d3068ddbde3d2a1ebaf /build_tools/make_buildopts_h | |
parent | 9894ab1869e492c451731d501744c7e414e859de (diff) |
Use the fix suggested by Tilghman on the -dev to make cutting up the BUILDSUM
friendly to non-bash shells. I think this should work for BSD/mingw as well,
but did not yet remove the switch statement.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89359 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'build_tools/make_buildopts_h')
-rwxr-xr-x | build_tools/make_buildopts_h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build_tools/make_buildopts_h b/build_tools/make_buildopts_h index 87271ec49..67c42c122 100755 --- a/build_tools/make_buildopts_h +++ b/build_tools/make_buildopts_h @@ -29,6 +29,6 @@ case ${OSARCH} in # actually we should check build_os ;; *) 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}}" + echo "#define AST_BUILDOPT_SUM { `echo -n ${BUILDSUM} | cut -c1-8`, `echo -n ${BUILDSUM} | cut -c9-16`, `echo -n ${BUILDSUM} | cut -c17-24`, `echo -n ${BUILDSUM} | cut -c25-32` }" ;; esac |