This commit is contained in:
Noah Zoschke
2011-11-04 09:47:47 -07:00
parent 3a136f2124
commit b1f05b93df
+2 -4
View File
@@ -1,12 +1,10 @@
#!/usr/bin/env bash
# bin/release <build-dir>
BIN_DIR=$(dirname $0)
BIN_DIR=$(cd $(dirname $0); pwd) # absolute path
BUILD_DIR=$1
NAME=$($BIN_DIR/detect $BUILD_DIR) || exit 1
cd $BUILD_DIR
cat <<EOF
---
config_vars:
@@ -16,7 +14,7 @@ EOF
[ "$NAME" = "Python/Django" ] || exit 0
SETTINGS_FILE=$(ls **/settings.py | head -1)
SETTINGS_FILE=$(ls $BUILD_DIR/**/settings.py | head -1)
PROJECT=$(dirname $SETTINGS_FILE)
cat <<EOF