-
Notifications
You must be signed in to change notification settings - Fork 1
/
getCharms.sh
executable file
·102 lines (90 loc) · 1.91 KB
/
getCharms.sh
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#!/bin/bash
#bzr must be installed before running the script
BASE_DIR=`pwd`
mkdir tmpCharms
cd tmpCharms
TMP_CHARMS=`pwd`
cd $BASE_DIR
mkdir charmZips
cd charmZips
CHARM_ZIPS=`pwd`
#start downloading
#Apache2
cd $TMP_CHARMS
mkdir apache2
cd apache2
bzr branch lp:~charmers/charms/precise/apache2/trunk
cd trunk
zip -r $CHARM_ZIPS/apache2.zip .*
#cassandra
cd $TMP_CHARMS
mkdir cassandra
cd cassandra
bzr branch lp:~charmers/charms/precise/cassandra/trunk
cd trunk
zip -r $CHARM_ZIPS/cassandra.zip .*
#elasticsearch
cd $TMP_CHARMS
mkdir elasticsearch
cd elasticsearch
bzr branch lp:~charmers/charms/precise/elasticsearch/trunk
cd trunk
zip -r $CHARM_ZIPS/elasticsearch.zip .*
#drupal6
cd $TMP_CHARMS
mkdir drupal6
cd drupal6
bzr branch lp:~lynxman/charms/precise/drupal6/trunk
cd trunk
zip -r $CHARM_ZIPS/drupal6.zip .*
#jujugui
cd $TMP_CHARMS
mkdir jujugui
cd jujugui
bzr branch lp:~juju-gui-charmers/charms/precise/juju-gui/trunk
cd trunk
zip -r $CHARM_ZIPS/jujugui.zip .*
#memcached
cd $TMP_CHARMS
mkdir memcached
cd memcached
bzr branch lp:~charmers/charms/precise/memcached/trunk
cd trunk
zip -r $CHARM_ZIPS/memcached.zip .*
#rabbitmqserver
cd $TMP_CHARMS
mkdir rabbitmqserver
cd rabbitmqserver
bzr branch lp:~charmers/charms/precise/rabbitmq-server/trunk
cd trunk
zip -r $CHARM_ZIPS/rabbitmqserver.zip .*
#solr
cd $TMP_CHARMS
mkdir solr
cd solr
bzr branch lp:~charmers/charms/precise/solr/trunk
cd trunk
zip -r $CHARM_ZIPS/solr.zip .*
#tomcat7
cd $TMP_CHARMS
mkdir tomcat7
cd tomcat7
bzr branch lp:~charmers/charms/precise/tomcat7/trunk
cd trunk
zip -r $CHARM_ZIPS/tomcat7.zip .*
#wordpress
cd $TMP_CHARMS
mkdir wordpress
cd wordpress
bzr branch lp:~charmers/charms/precise/wordpress/trunk
cd trunk
zip -r $CHARM_ZIPS/wordpress.zip .*
#zookeeper
cd $TMP_CHARMS
mkdir zookeeper
cd zookeeper
bzr branch lp:~charmers/charms/precise/zookeeper/trunk
cd trunk
zip -r $CHARM_ZIPS/zookeeper.zip .*
#remove temporary dir for charms
rm -rf $TMP_CHARMS