Skip to content

Commit

Permalink
Let autogen.sh work on Solaris and without gtkdocize
Browse files Browse the repository at this point in the history
  • Loading branch information
rockdaboot committed Jan 2, 2016
1 parent 9f420e2 commit f829668
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions autogen.sh
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
#!/bin/sh -e
#!/bin/sh

AUTORECONF=$(which autoreconf 2>/dev/null || true)
AUTORECONF=$(which autoreconf 2>/dev/null)
if test $? -ne 0; then
echo "No 'autoreconf' found. You must install the autoconf package."
exit 1
fi

GIT=$(which git 2>/dev/null || true)
GIT=$(which git 2>/dev/null)
if test $? -ne 0; then
echo "No 'git' found. You must install the git package."
exit 1
fi

# create m4 before gtkdocize
mkdir m4 2>/dev/null || true
# create m4 before gtkdocize
mkdir -p m4 2>/dev/null

GTKDOCIZE=$(which gtkdocize 2>/dev/null || true)
GTKDOCIZE=$(which gtkdocize 2>/dev/null)
if test $? -ne 0; then
echo "No gtk-doc support found. You can't build the docs."
# rm because gtk-doc.make might be a link to a protected file
Expand All @@ -24,7 +24,7 @@ if test $? -ne 0; then
echo "CLEANFILES =" >>gtk-doc.make
GTKDOCIZE=""
else
$GTKDOCIZE || exit $?
$GTKDOCIZE
fi

$GIT submodule init
Expand Down

0 comments on commit f829668

Please sign in to comment.