237 Unstar Star 644 Fork 279

GVPlins05 / seafile

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
Clone or download
updateversion.sh 604 Bytes
Copy Edit Web IDE Raw Blame History
#! /bin/sh
if [ $# != "2" ]; then
echo "$0 <old_version> <new_version>"
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|<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

Comment ( 0 )

Sign in for post a comment

C
1
https://git.oschina.net/lins05/seafile.git
git@git.oschina.net:lins05/seafile.git
lins05
seafile
seafile
master

Search