Changeset 556 for tools

Show
Ignore:
Timestamp:
08/25/07 19:45:49 (15 months ago)
Author:
michiel
Message:

try to find the svn binary instead of using the hardcoded default.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • tools/mkrelease.sh

    r492 r556  
    3232# Functions. Nothing should be changed # 
    3333######################################## 
     34 
     35# Set svn binary location 
     36_set_svn_location() { 
     37        echo "Looking for svn binary" 
     38        if [ -x /usr/local/bin/svn ]; then 
     39                echo "svn found in /usr/local/bin" 
     40                SVN="/usr/local/bin/svn -q" 
     41        elif [ -x /usr/bin/svn ]; then 
     42                echo "svn found in /usr/bin" 
     43                SVN="/usr/bin/svn -q" 
     44        elif [ -x /bin/svn ]; then 
     45                echo "svn found in /bin" 
     46                SVN="/bin/svn -q" 
     47        else 
     48                echo "svn not found. Please install subversion and try again" 
     49                exit 1 
     50        fi 
     51} 
    3452 
    3553# Set all vars we defined above based on user answers 
     
    115133        files=`find . -type f | grep -v '.svn' | grep -v '/tiny_mce' | grep -v '/mvblog_apidoc'` 
    116134        for a in $files; do 
    117                 sed "s,%%VERSION%%,${VERSION},g" "${a}" > "${a}.$$" 
     135                sed "s,2.2,${VERSION},g" "${a}" > "${a}.$$" 
    118136                mv "${a}.$$" "${a}" 
    119137        done 
     
    168186        _handle_args "$@" 
    169187        _interactive 
     188        _set_svn_location 
    170189        _create_tag 
    171190        _svn_export