aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@perex.cz>2010-07-30 19:59:13 +0200
committerJaroslav Kysela <perex@perex.cz>2010-07-30 19:59:13 +0200
commitae65177c4155488d110a4092d05282f615dfe969 (patch)
tree31c45eec2abe6bd6e11a5562e484c5c311dfdf2c
parent6d6173d248e5d54ae553e1f44e6147a2e5d93e8d (diff)
downloadalsa-driver-build-unstable-ae65177c4155488d110a4092d05282f615dfe969.tar.gz
alsa-compile.sh: Fix typo and add directory check for --url
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
-rwxr-xr-xutils/alsa-compile.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/alsa-compile.sh b/utils/alsa-compile.sh
index 6e653f8c8..9c4bb075e 100755
--- a/utils/alsa-compile.sh
+++ b/utils/alsa-compile.sh
@@ -153,6 +153,9 @@ do
url="$2"
shift ;;
esac
+ if test -d "$url"; then
+ url="file:///$url"
+ fi
;;
--git*)
case "$#,$1" in
@@ -476,7 +479,7 @@ check_compilation_environment() {
local a=$(make --version | head -1 | cut -d ' ' -f 1)
local b=$(make --version | head -1 | cut -d ' ' -f 2)
if test "$a" != "make" -a "$b" != "make" -a \
- test "$a" != "Make" -a test "$b" != "Make"; then
+ "$a" != "Make" -a "$b" != "Make"; then
install_package make
else
echo "Program make found."