Making post down hook script for svn regarding sending emails after an file is committed in svn

Hi Folks ,

I am asking this question but i apologise please if this is not the correct forum ,

I have to develop a shell script that i want to place in at hooks/post-commit , that is basically i have to develop a post hook script and the main functionality of that script would be lets say if a user commit any piece of code in other words lets say if a user do changes in a file by modifying or by removing any text then when he commits that file in svn repository that script would be executed and it will be sending a mail to an email id mentioned in script and in that mail body there will be text which was removed by user shown in red color and the text that was added by user shown in green color

so the things that shell script consisits of is

email id of reciever
and from where the mail is sent

folks please advise how to develop such script as an example i have seen the ruby script to achieve the same sharing the url for that also...

http://gurge.com/2006/09/10/subversion-post-commit-email-hook-in-ruby/
https://mikewest.org/2006/06/subversion-post-commit-hooks-101

but i want to develop the shell script to achieve the same.:confused::eek:

Folks any early help and advise would be highly appreciated