Skip to content

Commit

Permalink
Added necessary existence checks
Browse files Browse the repository at this point in the history
  • Loading branch information
farsil committed Nov 9, 2016
1 parent c213b1b commit 7a9227d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions configure
@@ -1,5 +1,19 @@
#!/bin/sh

check_existence() {
command -v "$1" >/dev/null 2>&1 || {
echo 'error: '"$1"' not found'
ERROR=1
}
}

check_existence install
check_existence bdf2pcf
check_existence gzip
check_existence rm

[ -n "$ERROR" ] && exit 1;

PREFIX="/usr/local"
SRCDIR=""
OBJDIR=""
Expand Down

0 comments on commit 7a9227d

Please sign in to comment.