mirror of
https://github.com/wekan/wekan.git
synced 2025-12-19 17:00:13 +01:00
15 lines
321 B
Bash
15 lines
321 B
Bash
|
|
#!/bin/bash
|
||
|
|
set -e
|
||
|
|
git submodule init
|
||
|
|
git submodule update --remote
|
||
|
|
cd "`dirname $0`/fullcalendar"
|
||
|
|
git pull --rebase origin master
|
||
|
|
if [[ -z "$1" ]];then
|
||
|
|
VER=`git tag | tail -n1 | sed 's/^v//'`
|
||
|
|
else
|
||
|
|
VER="$1"
|
||
|
|
fi
|
||
|
|
git checkout v$VER
|
||
|
|
sed -i -e 's/version: "\([^"]*\)"/version: "'$VER'"/' ../package.js
|
||
|
|
|