-
Notifications
You must be signed in to change notification settings - Fork 9
/
tools.mk
45 lines (36 loc) · 1.36 KB
/
tools.mk
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
solr_version=4.3.1
nodejs_version=0.10.16
start-solr:
cd solr/solr-$(solr_version)/example && \
java -jar start.jar && \
@echo ">>> SolR is now running at http://localhost:8983/solr/admin"
install-solr:
mkdir -p solr && \
cd solr && \
echo ">>> Downloading SolR (this may take a few minutes)." && \
wget http://archive.apache.org/dist/lucene/solr/$(solr_version)/solr-$(solr_version).tgz && \
tar -zxf solr-$(solr_version).tgz && \
cp ../target/mica-dev/profiles/mica_distribution/modules/search_api_solr/solr-conf/4.x/* solr-$(solr_version)/example/solr/collection1/conf && \
rm solr-$(solr_version).tgz
clean-solr:
rm -rf solr
install-drush:
apt-get install -y php-pear
pear channel-discover pear.drush.org
pear install drush/drush-5.9.0
install-lessc: install-nodejs install-bootstrap-dependencies
install-nodejs:
apt-get install -y g++ curl libssl-dev apache2-utils && \
mkdir target/nodejs && \
cd target/nodejs && \
wget -q http://nodejs.org/dist/v$(nodejs_version)/node-v$(nodejs_version).tar.gz && \
tar -xzvf node-v$(nodejs_version).tar.gz && \
cd node-v$(nodejs_version) && \
./configure && \
make && \
make install
install-bootstrap-dependencies:
npm install less connect uglify-js jshint -g
install-packaging-dependencies:
apt-get install devscripts debhelper
install-tools: install-packaging-dependencies install-drush install-lessc install-solr