updated release script
This commit is contained in:
parent
b55efddf07
commit
b5191af60f
10
release.sh
Normal file → Executable file
10
release.sh
Normal file → Executable file
@ -15,13 +15,21 @@ js="$name.js"
|
|||||||
mini="$name.min.js"
|
mini="$name.min.js"
|
||||||
css="$name.css"
|
css="$name.css"
|
||||||
release="$name-$ver"
|
release="$name-$ver"
|
||||||
tag="release-$ver"
|
tag="$ver"
|
||||||
branch="build-$ver"
|
branch="build-$ver"
|
||||||
curbranch=`git branch | grep "*" | sed "s/* //"`
|
curbranch=`git branch | grep "*" | sed "s/* //"`
|
||||||
timestamp=$(date)
|
timestamp=$(date)
|
||||||
tokens="s/@@ver@@/$ver/g;s/\@@timestamp@@/$timestamp/g"
|
tokens="s/@@ver@@/$ver/g;s/\@@timestamp@@/$timestamp/g"
|
||||||
remote="github"
|
remote="github"
|
||||||
|
|
||||||
|
echo "Updating Version Identifiers"
|
||||||
|
|
||||||
|
sed -E -e "s/\"version\": \"([0-9\.]+)\",/\"version\": \"$ver\",/g" -i "" component.json select2.jquery.json
|
||||||
|
git add component.json
|
||||||
|
git add select2.jquery.json
|
||||||
|
git commit -m "modified version identifiers in descriptors for release $ver"
|
||||||
|
git push
|
||||||
|
|
||||||
git branch "$branch"
|
git branch "$branch"
|
||||||
git checkout "$branch"
|
git checkout "$branch"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user