[ Index ] |
PHP Cross Reference of vtigercrm-6.1.0 |
[Summary view] [Print] [Text view]
1 #!/bin/bash 2 set -e 3 4 echo -n "Enter the version for this release: " 5 6 read ver 7 8 if [ ! $ver ]; then 9 echo "Invalid version." 10 exit 11 fi 12 13 name="select2" 14 js="$name.js" 15 mini="$name.min.js" 16 css="$name.css" 17 release="$name-$ver" 18 tag="release-$ver" 19 branch="build-$ver" 20 curbranch=`git branch | grep "*" | sed "s/* //"` 21 timestamp=$(date) 22 tokens="s/@@ver@@/$ver/g;s/\@@timestamp@@/$timestamp/g" 23 remote="github" 24 25 git branch "$branch" 26 git checkout "$branch" 27 28 echo "Tokenizing..." 29 30 find . -name "$js" | xargs -I{} sed -e "$tokens" -i "" {} 31 find . -name "$css" | xargs -I{} sed -e "$tokens" -i "" {} 32 33 git add "$js" 34 git add "$css" 35 36 echo "Minifying..." 37 38 echo "/*" > "$mini" 39 cat LICENSE | sed "$tokens" >> "$mini" 40 echo "*/" >> "$mini" 41 42 curl -s \ 43 -d compilation_level=SIMPLE_OPTIMIZATIONS \ 44 -d output_format=text \ 45 -d output_info=compiled_code \ 46 --data-urlencode "js_code@$js" \ 47 http://closure-compiler.appspot.com/compile \ 48 >> "$mini" 49 50 git add "$mini" 51 52 git commit -m "release $ver" 53 54 echo "Tagging..." 55 git tag -a "$tag" -m "tagged version $ver" 56 git push "$remote" --tags 57 58 echo "Cleaning Up..." 59 60 git checkout "$curbranch" 61 git branch -D "$branch" 62 63 echo "Done"
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:08:37 2014 | Cross-referenced by PHPXref 0.7.1 |