mirror of
https://github.com/wassname/fullcalendar.git
synced 2026-06-27 16:10:13 +08:00
20 lines
497 B
Bash
20 lines
497 B
Bash
#!/usr/bin/env bash
|
|
|
|
cd "`dirname $0`/.."
|
|
|
|
read -p "Enter the new version number with no 'v' (for example '1.0.1'): " version
|
|
|
|
if [[ ! "$version" ]]
|
|
then
|
|
exit;
|
|
fi
|
|
|
|
grunt bump --setversion=$version && \
|
|
grunt dist && \
|
|
git add *.json && \
|
|
git add -f dist/*.js dist/*.css dist/lang/*.js && \
|
|
git commit -e -m "version $version" && \
|
|
git tag -a v$version -m "version $version" && \
|
|
echo && \
|
|
echo 'DONE. It is now up to you to run `'"git push origin master && git push origin v$version"'`' && \
|
|
echo |