Permalink
Browse files

initial commit

  • Loading branch information...
0 parents commit 29887b4b5359af2ef655e580f3f7c6a808fdacab @jkvor jkvor committed Oct 7, 2011
Showing with 46 additions and 0 deletions.
  1. +1 −0 README.md
  2. +26 −0 bin/compile
  3. +12 −0 bin/detect
  4. +7 −0 bin/release
  5. BIN opt/rebar
1 README.md
@@ -0,0 +1 @@
+# Erlang Language Pack
26 bin/compile
@@ -0,0 +1,26 @@
+#!/usr/bin/env bash
+# bin/compile <build-dir> <cache-dir>
+
+set -e
+
+function message {
+ echo "$1"
+ sync
+}
+
+BIN_DIR=$(cd $(dirname $0); pwd) # absolute path
+
+BUILD_DIR=$1
+CACHE_DIR=$2
+
+unset GIT_DIR
+cd $BUILD_DIR
+
+if [ ! -e "rebar" ]; then
+ cp $BIN_DIR/../opt/rebar ./
+fi
+
+message "-----> Building with Rebar"
+./rebar get-deps compile 2>&1 | sed -u 's/^/ /'
+[ "${PIPESTATUS[*]}" = "0 0" ]
+
12 bin/detect
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+# this pack is valid for apps with a rebar.config or ebin dir in the root
+if [ -f $1/rebar.config ]; then
+ echo "Erlang"
+ exit 0
+elif [ -d $1/ebin ]; then
+ echo "Erlang"
+ exit 0
+else
+ exit 1
+fi
7 bin/release
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+cat << EOF
+---
+config_vars:
+ PATH: bin:/usr/bin:/bin:/usr/local/lib/erlang/bin
+EOF
BIN opt/rebar
Binary file not shown.

0 comments on commit 29887b4

Please sign in to comment.