From 84ef3d80c5591ea92ccc7ffe0aa9e1f4d169c9c8 Mon Sep 17 00:00:00 2001 From: Igor Vaynberg Date: Mon, 10 Sep 2012 10:36:37 -0700 Subject: [PATCH] simplify release.sh to let github generate archives from tags --- release.sh | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/release.sh b/release.sh index 79eaabd6..6ec395d3 100755 --- a/release.sh +++ b/release.sh @@ -15,7 +15,6 @@ 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/* //"` @@ -28,8 +27,8 @@ git checkout "$branch" echo "Tokenizing..." -find . -name "$js" | xargs sed -i -e "$tokens" -find . -name "$css" | xargs sed -i -e "$tokens" +find . -name "$js" | xargs -I{} sed -e "$tokens" -i "" {} +find . -name "$css" | xargs -I{} sed -e "$tokens" -i "" {} git add "$js" git add "$css" @@ -53,25 +52,12 @@ git add "$mini" git commit -m "release $ver" echo "Tagging..." - git tag -a "$tag" -m "tagged version $ver" git push "$remote" --tags -echo "Archiving..." - -rm -rf "$releasedir" -mkdir "$releasedir" - -cp $name.* "$releasedir" -cp spinner.gif "$releasedir" -cp README.* "$releasedir" - -zip -r "$releasedir.zip" "$releasedir" -rm -rf "$releasedir" - echo "Cleaning Up..." git checkout "$curbranch" git branch -D "$branch" -echo "Done. Release archive created: $releasedir.zip" +echo "Done"