OSDN Git Service
(root)
/
wvm
/
wvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9312ffc
)
dev-build: check that 'php' is available before doing anything else
author
scribu
<mail@scribu.net>
Fri, 26 Apr 2013 19:29:00 +0000
(22:29 +0300)
committer
scribu
<mail@scribu.net>
Fri, 26 Apr 2013 20:15:38 +0000
(23:15 +0300)
see #419
utils/dev-build
patch
|
blob
|
history
utils/find-php
patch
|
blob
|
history
diff --git
a/utils/dev-build
b/utils/dev-build
index
6583a47
..
2f0a97d
100755
(executable)
--- a/
utils/dev-build
+++ b/
utils/dev-build
@@
-1,5
+1,11
@@
#!/usr/bin/env bash
+# check that PHP is available
+command -v php > /dev/null || {
+ echo "can't find PHP binary" >&2
+ exit 1
+}
+
# install Composer
command -v composer > /dev/null || {
curl -sS https://getcomposer.org/installer | php
diff --git
a/utils/find-php
b/utils/find-php
index
e1a82c4
..
f8d19f4
100755
(executable)
--- a/
utils/find-php
+++ b/
utils/find-php
@@
-15,5
+15,5
@@
if [ $? -eq 0 ]; then
exit
fi
-echo "no
php binary found"
+echo "no
PHP binary found" >&2
exit 1