I just sent a patch to darcs-devel that adds a --without-docs option to configure.

After about the 5th time of forgetting that the docs always fail to build on my machine(s) (most of them are debian unstable) I decided to fix the upstream configure so I could exclude docs without hacking the configure script or renameing my executables.

I've attached it here for anyone else that might find it handy.


--
Richard A. Smith
Bitworks, Inc

New patches:

[add a --without-docs option to configure
[EMAIL PROTECTED] {
hunk ./configure.ac 255
-AC_CHECK_PROG(LATEX, latex, latex)
-if test -z "$LATEX"; then
-    AC_MSG_WARN([Cannot find latex in your path!])
-fi
-AC_CHECK_PROG(DVIPS, dvips, dvips)
-if test -z "$DVIPS"; then
-    AC_MSG_WARN([Cannot find dvips in your path!])
-fi
-if test ! '(' '(' -z "$LATEX" ')' -o '(' -z "$DVIPS" ')' ')'; then
-   TARGETS="$TARGETS darcs.ps"
-   INSTALLWHAT="$INSTALLWHAT installdocs"
-   BUILDDOC="yes"
-fi
-AC_CHECK_PROG(LATEX2HTML, latex2html, latex2html)
-if test -z "$LATEX2HTML"; then
-    AC_MSG_WARN([Cannot find latex2html in your path!])
-    PREPROCHTML=""
-    AC_CHECK_PROG(HTLATEX, htlatex, htlatex)
-    if test -z "$HTLATEX"; then
-        AC_MSG_WARN([Cannot find htlatex in your path either!])
-        AC_CHECK_PROG(HEVEA, hevea, hevea)
-        if test -z "$HEVEA"; then
-          AC_MSG_WARN([Cannot find hevea in your path either!])
-          MAKEMANUAL="touch manual/index.html; echo Cannot make manual!"
-        else
-          TARGETS="$TARGETS manual/index.html"
-          MAKEMANUAL="$HEVEA -o manual/index.html darcs.tex"
-        fi
-    else
-        TARGETS="$TARGETS manual/index.html"
-        MAKEMANUAL="cd manual && $HTLATEX ../darcs.tex && ln -sf darcs.html 
index.html"
-    fi
+AC_MSG_CHECKING([whether to build docs])
+AC_ARG_WITH(docs,
+       AS_HELP_STRING([--without-docs],
+                           [do not try to build docs]),
+           ,with_docs=yes)
+AC_MSG_RESULT($with_docs)
+
+if test "$with_docs" = "yes"; then
+       AC_CHECK_PROG(LATEX, latex, latex)
+       if test -z "$LATEX"; then
+       AC_MSG_WARN([Cannot find latex in your path!])
+       fi
+       AC_CHECK_PROG(DVIPS, dvips, dvips)
+       if test -z "$DVIPS"; then
+       AC_MSG_WARN([Cannot find dvips in your path!])
+       fi
+       if test ! '(' '(' -z "$LATEX" ')' -o '(' -z "$DVIPS" ')' ')'; then
+       TARGETS="$TARGETS darcs.ps"
+       INSTALLWHAT="$INSTALLWHAT installdocs"
+       BUILDDOC="yes"
+       fi
+       AC_CHECK_PROG(LATEX2HTML, latex2html, latex2html)
+       if test -z "$LATEX2HTML"; then
+       AC_MSG_WARN([Cannot find latex2html in your path!])
+       PREPROCHTML=""
+       AC_CHECK_PROG(HTLATEX, htlatex, htlatex)
+       if test -z "$HTLATEX"; then
+               AC_MSG_WARN([Cannot find htlatex in your path either!])
+               AC_CHECK_PROG(HEVEA, hevea, hevea)
+               if test -z "$HEVEA"; then
+               AC_MSG_WARN([Cannot find hevea in your path either!])
+               MAKEMANUAL="touch manual/index.html; echo Cannot make manual!"
+               else
+               TARGETS="$TARGETS manual/index.html"
+               MAKEMANUAL="$HEVEA -o manual/index.html darcs.tex"
+               fi
+       else
+               TARGETS="$TARGETS manual/index.html"
+               MAKEMANUAL="cd manual && $HTLATEX ../darcs.tex && ln -sf 
darcs.html index.html"
+       fi
+       else
+       TARGETS="$TARGETS manual/index.html"
+       MAKEMANUAL="$LATEX2HTML -split +1 -dir manual darcs.tex"
+       dnl the following tells "preproc" to generate "rawhtml" sections for 
latex2html.
+       PREPROCHTML="--html"
+       fi
hunk ./configure.ac 302
-    TARGETS="$TARGETS manual/index.html"
-    MAKEMANUAL="$LATEX2HTML -split +1 -dir manual darcs.tex"
-dnl the following tells "preproc" to generate "rawhtml" sections for 
latex2html.
-    PREPROCHTML="--html"
+       BUILDDOC="no"
hunk ./configure.ac 304
+
}

Context:

[TAG 1.0.5
Tommy Pettersson <[EMAIL PROTECTED]>**20051207112730] 
Patch bundle hash:
71ac9514d0851666ce403b5b4599edfa6120e4a8
_______________________________________________
darcs-users mailing list
[email protected]
http://www.abridgegame.org/mailman/listinfo/darcs-users

Reply via email to