-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
42 lines (37 loc) · 1.45 KB
/
Makefile
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
BUILD_FOLDER=build
PROJECT_NAME=test-project
BUILD_PROJECT=${BUILD_FOLDER}/${PROJECT_NAME}
run:
cp -r htdocs/* ${BUILD_PROJECT}/htdocs
cp -r templates/* ${BUILD_PROJECT}/templates
echo "Autenticate with: username/password"
${BUILD_FOLDER}/bin/tracd --port 8080 \
--basic-auth="${PROJECT_NAME},${PWD}/${BUILD_FOLDER}/htpasswd,realm" \
${BUILD_PROJECT}
deps: clean
virtualenv ${BUILD_FOLDER}
@echo "Installing trac will take a while..."
${BUILD_FOLDER}/bin/pip install trac==0.12.5
${BUILD_FOLDER}/bin/trac-admin ${BUILD_PROJECT} \
initenv Test-Project sqlite:db/trac.db
htpasswd -b -c ${BUILD_FOLDER}/htpasswd username password
mkdir -p ${BUILD_PROJECT}/htdocs/css
mkdir -p ${BUILD_PROJECT}/htdocs/js
mkdir -p ${BUILD_PROJECT}/htdocs/img
wget -q \
http://twitter.github.com/bootstrap/assets/css/bootstrap.css\
-O ${BUILD_PROJECT}/htdocs/css/bootstrap.css
wget -q \
http://twitter.github.com/bootstrap/assets/css/bootstrap-responsive.css\
-O ${BUILD_PROJECT}/htdocs/css/bootstrap-responsive.css
wget -q \
http://twitter.github.com/bootstrap/assets/img/glyphicons-halflings.png\
-O ${BUILD_PROJECT}/htdocs/img/glyphicons-halflings.png
wget -q \
http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js\
-O ${BUILD_PROJECT}/htdocs/js/jquery.min.js
wget -q \
http://twitter.github.com/bootstrap/assets/js/bootstrap.min.js\
-O ${BUILD_PROJECT}/htdocs/js/bootstrap.min.js
clean:
rm -rf ${BUILD_FOLDER}