aboutsummaryrefslogtreecommitdiffstats
path: root/build_tools
diff options
context:
space:
mode:
Diffstat (limited to 'build_tools')
-rwxr-xr-xbuild_tools/make_buildopts_h9
-rwxr-xr-xbuild_tools/make_version4
2 files changed, 4 insertions, 9 deletions
diff --git a/build_tools/make_buildopts_h b/build_tools/make_buildopts_h
index 93be6da7e..4f02896e4 100755
--- a/build_tools/make_buildopts_h
+++ b/build_tools/make_buildopts_h
@@ -26,13 +26,8 @@ then
echo "#define AST_DEVMODE 1"
TMP="${TMP} AST_DEVMODE"
fi
-for x in md5 digest md5sum gmd5sum; do
- BUILDSUM=`echo ${TMP} | $x 2> /dev/null`
- if [ $? = 0 ]; then
- BUILDSUM=`echo ${BUILDSUM} | cut -c1-32`
- break;
- fi
-done
+
+BUILDSUM=`echo ${TMP} | ${MD5} | cut -c1-32`
echo "#define AST_BUILDOPT_SUM \"${BUILDSUM}\""
echo "#define AST_BUILDOPTS \"${BUILDOPTS}\""
diff --git a/build_tools/make_version b/build_tools/make_version
index 73e9864fa..67231ff0c 100755
--- a/build_tools/make_version
+++ b/build_tools/make_version
@@ -30,7 +30,7 @@ elif [ -d .svn ]; then
fi
if [ ${BRANCH} != 0 ] ; then
- if [ -z ${RESULT} ] ; then
+ if [ -z "${RESULT}" ] ; then
RESULT="${PART}"
else
RESULT="${RESULT}-${PART}"
@@ -39,7 +39,7 @@ elif [ -d .svn ]; then
fi
if [ ${TEAM} != 0 ] ; then
- if [ -z ${RESULT} ] ; then
+ if [ -z "${RESULT}" ] ; then
RESULT="${PART}"
else
RESULT="${RESULT}-${PART}"