#! /bin/sh if [ $# != "2" ]; then echo "$0 " exit fi old_ver=$1 new_ver=$2 if test "$(uname)" = "Darwin"; then sed -i '' -e "s|$old_ver|$new_ver|" web/setup_mac.py sed -i '' -e "s|VERSION=$old_ver|VERSION=$new_ver|" setupmac.sh sed -i '' -e "s|$old_ver|$new_ver|" gui/mac/seafile/seafile/*.plist else sed -i "s|$old_ver|$new_ver|" web/setup_mac.py sed -i "s|VERSION=$old_ver|VERSION=$new_ver|" setupmac.sh sed -i "s|$old_ver|$new_ver|" gui/mac/seafile/seafile/*.plist fi