Permalink
Browse files

Melhoria no Makefile para escolher entre Linux e OSX

Senti a necessidade desta alteracao pois
o Readline nao eh necessario no Linux.
  • Loading branch information...
1 parent ad0e27a commit 73e15b2ca0a0d10c6c9e90daa0cd9036bf822d9c @fmondaini fmondaini committed Dec 11, 2012
Showing with 26 additions and 4 deletions.
  1. +1 −3 Makefile
  2. +0 −1 requirements_test.txt
  3. +11 −0 requirements_test_osx.txt
  4. +14 −0 setup_os.sh
View
@@ -1,7 +1,5 @@
-
deps:
- @pip install -r requirements.txt
- @pip install -r requirements_test.txt
+ @bash -c "./setup_os.sh"
setup: deps
@python manage.py syncdb --settings associados.settings_local
View
@@ -5,7 +5,6 @@ django-dynamic-fixture==1.6.3
django-extensions==0.9
ipdb==0.6.1
ipython==0.12.1
-readline==6.2.2
sorl-thumbnail==11.12
wsgiref==0.1.2
django-nose==1.1
View
@@ -0,0 +1,11 @@
+Django==1.4
+coverage==3.5.2
+django-debug-toolbar==0.9.4
+django-dynamic-fixture==1.6.3
+django-extensions==0.9
+ipdb==0.6.1
+ipython==0.12.1
+readline==6.2.2
+sorl-thumbnail==11.12
+wsgiref==0.1.2
+django-nose==1.1
View
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+if [[ $OSTYPE == 'linux-gnu' ]]; then
+ echo 'Linux: Instalando dependencias...'
+ sleep 3
+ pip install -r requirements.txt
+ pip install -r requirements_test.txt
+
+elif [[ $OSTYPE == darwin* ]]; then
+ echo 'OSX: Instalando dependencias...'
+ sleep 3
+ pip install -r requirements.txt
+ pip install -r requirements_test_osx.txt
+fi

0 comments on commit 73e15b2

Please sign in to comment.