#56 install.sh only works on systems with 'md5sum'

open
nobody
5
2012-04-12
2012-04-12
No

my system (Mac OS X) does not have 'md5sum'. install.sh fails to run. This diff shows the changes that I made to allow it to install on my Mac OS X box (and still works on my Centos system as well).

face@mac:amb-work:225 $ diff ../amb/install.sh ./install.sh
412a413,415
> MD5SUM=md5sum
> type md5sum >/dev/null 2>&1 || MD5SUM='md5 -r '
>
423c426,427
< if echo "${precheck_files[$((2*$i+1))]} ${precheck_files[$((2*$i))]}" | md5sum --check >/dev/null 2>&1; then
---
> CHKSUM=`$MD5SUM ${precheck_files[$((2*$i))]}`
> if [ ${CHKSUM%% *} == ${precheck_files[$((2*$i+1))]} ]; then

Discussion

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks