add release update
This commit is contained in:
parent
f1ed503cb4
commit
81e29d1fc2
4 changed files with 121 additions and 22 deletions
32
ctl
32
ctl
|
|
@ -87,20 +87,24 @@ if [ "$1" == "ui" ]; then
|
|||
exit $?
|
||||
fi
|
||||
if [ "$1" == "update" ]; then
|
||||
cd "$BASE/$NAME"
|
||||
OLD=`"$0" version`
|
||||
cd "$BASE/platform"
|
||||
echo Update platform..
|
||||
git pull
|
||||
echo Update $NAME..
|
||||
cd "$BASE/$NAME"
|
||||
git pull
|
||||
find . -name '*.pyc' -exec rm "{}" \;
|
||||
$0 setup
|
||||
$0 update_static > /dev/null
|
||||
NEW=`"$0" version`
|
||||
$0 postupdate -o $OLD -n $NEW
|
||||
exit
|
||||
if [ -e $BASE/$NAME/.git ]; then
|
||||
cd "$BASE/$NAME"
|
||||
OLD=`"$0" version`
|
||||
cd "$BASE/platform"
|
||||
echo Update platform..
|
||||
git pull
|
||||
echo Update $NAME..
|
||||
cd "$BASE/$NAME"
|
||||
git pull
|
||||
find . -name '*.pyc' -exec rm "{}" \;
|
||||
$0 setup
|
||||
$0 update_static > /dev/null
|
||||
NEW=`"$0" version`
|
||||
$0 postupdate -o $OLD -n $NEW
|
||||
exit
|
||||
else
|
||||
python2 oml update
|
||||
fi
|
||||
fi
|
||||
if [ "$1" == "python" ]; then
|
||||
cd "$BASE/$NAME"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue