2013-01-19 14:35:18 +08:00
|
|
|
#! /bin/sh
|
|
|
|
|
|
|
|
if [ $# != "2" ]; then
|
|
|
|
echo "$0 <old_version> <new_version>"
|
|
|
|
exit
|
2014-06-08 14:55:16 +08:00
|
|
|
fi
|
2013-01-19 14:35:18 +08:00
|
|
|
|
|
|
|
old_ver=$1
|
|
|
|
new_ver=$2
|
|
|
|
|
2014-06-08 14:55:16 +08:00
|
|
|
if test "$(uname)" = "Darwin"; then
|
2013-01-19 14:35:18 +08:00
|
|
|
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|<string>$old_ver</string>|<string>$new_ver</string>|" 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|<string>$old_ver</string>|<string>$new_ver</string>|" gui/mac/seafile/seafile/*.plist
|
|
|
|
|
|
|
|
fi
|
|
|
|
|