Skip to content

Commit

Permalink
tweak release script to generate artifacts in /tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
ivaynberg committed Aug 14, 2012
1 parent 816af44 commit 52907f2
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@ if [ ! $ver ]; then
exit
fi

name=select2
name="select2"
js="$name.js"
mini="$name.min.js"
css="$name.css"
release="$name-$ver"
releasedir="/tmp/$release"
tag="release-$ver"
branch="build-$ver"
curbranch=`git branch | grep "*" | sed "s/* //"`
Expand Down Expand Up @@ -58,19 +59,19 @@ git push "$remote" --tags

echo "Archiving..."

rm -rf "$release"
mkdir "$release"
rm -rf "$releasedir"
mkdir "$releasedir"

cp $name.* "$release"
cp spinner.gif "$release"
cp README.* "$release"
cp $name.* "$releasedir"
cp spinner.gif "$releasedir"
cp README.* "$releasedir"

zip -r "$release.zip" "$release"
rm -rf "$release"
zip -r "$releasedir.zip" "$releasedir"
rm -rf "$releasedir"

echo "Cleaning Up..."

git checkout "$curbranch"
git branch -D "$branch"

echo "Done. Release archive created: $release.zip"
echo "Done. Release archive created: $releasedir.zip"

0 comments on commit 52907f2

Please sign in to comment.