From 1f331db404b8595d5e1d7e489f2f46b20f9931c6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaime=20P=C3=A9rez=20Crespo?= <jaime.perez@uninett.no>
Date: Mon, 24 Feb 2014 20:10:12 +0000
Subject: [PATCH] Fix build-release.sh script to automatically get composer if
 not present.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@3388 44740490-163a-0410-bde0-09ae8108e29a
---
 bin/build-release.sh | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/bin/build-release.sh b/bin/build-release.sh
index edcd7910e..179ca1ca4 100755
--- a/bin/build-release.sh
+++ b/bin/build-release.sh
@@ -29,8 +29,7 @@ svn export "$REPOPATH"
 # Use composer only on newer versions that have a composer.json
 if [ -f "$TAG/composer.json" ]; then
     if [ ! -x composer.phar ]; then
-        echo "$0: Composerfile detected, but Composer not installed?" >&2
-        exit 1
+        curl -sS https://getcomposer.org/installer | php
     fi
 
     # Install dependencies (without vcs history or dev tools)
-- 
GitLab