Skip to content

Commit

Permalink
always use release config from last given buildpack
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Rehfeld committed Apr 8, 2012
1 parent 08e9c9b commit 10b9e90
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
15 changes: 15 additions & 0 deletions bin/compile
@@ -1,5 +1,15 @@
#!/usr/bin/env bash

set -e

function indent() {
c='s/^/ /'
case $(uname) in
Darwin) sed -l "$c";;
*) sed -u "$c";;
esac
}

for BUILDPACK in $(cat $1/.buildpacks); do
dir=$(mktemp -t buildpackXXXXX)
rm -rf $dir
Expand Down Expand Up @@ -30,6 +40,11 @@ for BUILDPACK in $(cat $1/.buildpacks); do
if [ $? != 0 ]; then
exit 1
fi

$dir/bin/release $1 > $1/last_pack_release.out
fi
fi
done

echo "Using release configuration from last framework $framework:" | indent
cat $1/last_pack_release.out | indent
5 changes: 1 addition & 4 deletions bin/release
@@ -1,6 +1,3 @@
#!/usr/bin/env bash
# bin/release <build-dir>

cat <<EOF
---
EOF
cat $1/last_pack_release.out

0 comments on commit 10b9e90

Please sign in to comment.