This repository has been archived by the owner on Oct 10, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathbuild-marionette
executable file
·45 lines (34 loc) · 2.2 KB
/
build-marionette
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#! /bin/bash
if [ -z "$1" ]
then
echo "please specify your version. example: ./build-marionette 1.0.0-beta6"
exit
fi
# replace version in data/global.yml
sed -E -i '' -e 's/^version: (.+)/version: '$1'/g' data/global.yml
mkdir -p backbone.marionette/core
curl -L https://raw.github.com/douglascrockford/JSON-js/master/json2.js > backbone.marionette/json2.js
curl -L http://underscorejs.org/underscore.js > backbone.marionette/underscore.js
curl -L http://backbonejs.org/backbone.js > backbone.marionette/backbone.js
curl -L http://code.jquery.com/jquery.js > backbone.marionette/jquery.js
curl -L https://raw.github.com/marionettejs/backbone.wreqr/master/lib/backbone.wreqr.js > backbone.marionette/backbone.wreqr.js
curl -L https://raw.github.com/marionettejs/backbone.babysitter/master/lib/backbone.babysitter.js > backbone.marionette/backbone.babysitter.js
curl -L https://raw.github.com/marionettejs/backbone.marionette/master/lib/backbone.marionette.js > backbone.marionette/backbone.marionette.js
curl -L https://raw.github.com/marionettejs/backbone.marionette/master/lib/backbone.marionette.min.js > backbone.marionette/backbone.marionette.min.js
curl -L https://raw.github.com/marionettejs/backbone.marionette/master/lib/backbone.marionette.map > backbone.marionette/backbone.marionette.map
curl -L https://raw.github.com/marionettejs/backbone.marionette/master/lib/core/backbone.marionette.js > backbone.marionette/core/backbone.marionette.js
curl -L https://raw.github.com/marionettejs/backbone.marionette/master/lib/core/backbone.marionette.min.js > backbone.marionette/core/backbone.marionette.min.js
curl -L https://raw.github.com/marionettejs/backbone.marionette/master/lib/core/backbone.marionette.map > backbone.marionette/core/backbone.marionette.map
rm backbone.marionette.tar.gz
rm backbone.marionette.zip
tar -zcvf backbone.marionette.tar.gz backbone.marionette/
zip -r backbone.marionette.zip backbone.marionette/
rm -r source/downloads
mv backbone.marionette source/downloads
mv backbone.marionette.tar.gz source/downloads
mv backbone.marionette.zip source/downloads
rm source/downloads/backbone.js
rm source/downloads/jquery.js
rm source/downloads/json2.js
rm source/downloads/underscore.js
rake generate_docs