Skip to content

Instantly share code, notes, and snippets.

@LadyNamedLaura
Created July 25, 2012 19:37
Show Gist options
  • Save LadyNamedLaura/3178095 to your computer and use it in GitHub Desktop.
Save LadyNamedLaura/3178095 to your computer and use it in GitHub Desktop.
patch for systemd/autogen.sh
diff --git a/autogen.sh b/autogen.sh
index bec43fa..c0ef51d 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -23,13 +23,12 @@ if [ -f .git/hooks/pre-commit.sample -a ! -f .git/hooks/pre-commit ] ; then
echo "Activated pre-commit hook."
fi
-GTKDOCIZE=$(which gtkdocize 2>/dev/null)
-if test -z $GTKDOCIZE; then
- echo "You don't have gtk-doc installed, and thus won't be able to generate the documentation."
- echo 'EXTRA_DIST =' > docs/gtk-doc.make
-else
+if which gtkdocize &>/dev/null; then
gtkdocize --docdir docs/
gtkdocargs=--enable-gtk-doc
+else
+ echo "You don't have gtk-doc installed, and thus won't be able to generate the documentation."
+ echo 'EXTRA_DIST =' > docs/gtk-doc.make
fi
intltoolize --force --automake
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment