Skip to content

Commit

Permalink
Allow unversioned builds in release zip
Browse files Browse the repository at this point in the history
Fix for OS X's dumb inplace sed that left "-e" files in the release >:(
  • Loading branch information
dfreedm committed Oct 4, 2013
1 parent 25c0f99 commit d573bb4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/make-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ build() {
# version number on build file
cp platform.min.js platform-${VERSION}.min.js
cp platform.min.js.map platform-${VERSION}.min.js.map
sed -i -e "s|\(//# sourceMappingURL=\)platform.min.js|\1platform-${VERSION}.min.js|" platform-${VERSION}.min.js
sed -i '' -e "s|\(//# sourceMappingURL=\)platform.min.js|\1platform-${VERSION}.min.js|" platform-${VERSION}.min.js
mv platform{,-$VERSION}.min.js{,.map} ../
ok
popd >/dev/null
Expand All @@ -115,7 +115,7 @@ build() {
# version number on build file
cp polymer.min.js polymer-${VERSION}.min.js
cp polymer.min.js.map polymer-${VERSION}.min.js.map
sed -i -e "s|\(//# sourceMappingURL=\)polymer.min.js|\1polymer-${VERSION}.min.js|" polymer-${VERSION}.min.js
sed -i '' -e "s|\(//# sourceMappingURL=\)polymer.min.js|\1polymer-${VERSION}.min.js|" polymer-${VERSION}.min.js
mv build.log polymer{,-$VERSION}.min.js{,.map} ../
ok
popd >/dev/null
Expand All @@ -124,7 +124,7 @@ build() {
package() {
log "ZIPPING" "ALL REPOS"
rm -f polymer-all-$VERSION.zip
zip -q -x "polymer-$VERSION/polymer.min.js*" -x "polymer-$VERSION/platform.min.js*" -x "polymer-$VERSION/polymer/polymer.concat.js*" -x "*.git*" -x "*node_modules/*" -r polymer-all-$VERSION.zip polymer-$VERSION
zip -q -x "polymer-$VERSION/polymer/polymer.concat.js*" -x "*.git*" -x "*node_modules/*" -r polymer-all-$VERSION.zip polymer-$VERSION
ok
}

Expand Down

0 comments on commit d573bb4

Please sign in to comment.