Created
July 25, 2012 19:37
-
-
Save LadyNamedLaura/3178095 to your computer and use it in GitHub Desktop.
patch for systemd/autogen.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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