slug-compiler lp import

This commit is contained in:
Noah Zoschke
2011-05-17 18:26:46 -07:00
parent 6944c1780d
commit 9a69793da6
3 changed files with 107 additions and 0 deletions
Executable
+8
View File
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
# bin/name <build-dir>
BUILD_DIR=$1
[ -f $BUILD_DIR/requirements.txt ] || exit 1 # fail fast if no requirements.txt
# 'Django' if there is a [mysite]/settings.py file present; otherwise 'Python'
ls $BUILD_DIR/**/settings.py &> /dev/null && echo Django || echo Python