Skip to content

Commit

Permalink
refactor has_cairo_freetype.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Jan 16, 2013
1 parent 930d5be commit 16ae06f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions util/has_cairo_freetype.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/usr/bin/env bash
has_cairo_freetyep() {
pkg-config cairo --cflags-only-I | grep -E "freetype2" && return 0

return 1;
has_freetype() {
pkg-config cairo --cflags-only-I | grep freetype2
}

has_cairo_freetyep $1 > /dev/null
has_freetype > /dev/null

if test $? -eq 0; then
echo true
else
Expand Down

0 comments on commit 16ae06f

Please sign in to comment.