- better test for package membership to OCAML_OCAMLDOC_PACKAGES
authorStefano Zacchiroli <zack@debian.org>
Sun, 2 Sep 2007 17:12:05 +0000 (17:12 +0000)
committerStefano Zacchiroli <zack@debian.org>
Sun, 2 Sep 2007 17:12:05 +0000 (17:12 +0000)
debian/cdbs/ocaml.mk
debian/changelog

index 6d938579b5ecabdba2f4ac6a13845814a15a91ec..691f20896ea5b392d5018392fca69bc73ecb6575 100644 (file)
@@ -16,7 +16,7 @@
 # this program; if not, write to the Free Software Foundation, Inc., 51
 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 #
-# $Id: ocaml.mk 4270 2007-09-02 16:00:28Z zack $
+# $Id: ocaml.mk 4274 2007-09-02 17:12:05Z zack $
 
 _cdbs_scripts_path ?= /usr/lib/cdbs
 _cdbs_rules_path ?= /usr/share/cdbs/1/rules
@@ -44,7 +44,7 @@ endif
 
 # post-install hook to invoke ocamldoc on OCAML_OCAMLDOC_PACKAGES packages
 $(patsubst %,binary-install/%,$(DEB_PACKAGES))::
-       @if (echo $(OCAML_OCAMLDOC_PACKAGES) | grep -w '$(cdbs_curpkg)' > /dev/null) ; then \
+       @if (echo $(OCAML_OCAMLDOC_PACKAGES) | egrep '( |^)$(cdbs_curpkg)( |$$)' > /dev/null) ; then \
                echo 'mkdir -p debian/$(cdbs_curpkg)/$(OCAML_OCAMLDOC_DESTDIR_HTML)' ; \
                mkdir -p debian/$(cdbs_curpkg)/$(OCAML_OCAMLDOC_DESTDIR_HTML) ; \
                echo 'invoking ocamldoc on debian/$(cdbs_curpkg)$(OCAML_STDLIB_DIR)/ ...' ; \
@@ -58,7 +58,7 @@ $(patsubst %,binary-install/%,$(DEB_PACKAGES))::
 
 # post-build hook to create doc-base entries for OCAML_OCAMLDOC_PACKAGES packages
 $(patsubst %,build/%,$(DEB_PACKAGES))::
-       @if (echo $(OCAML_OCAMLDOC_PACKAGES) | grep -w '$(cdbs_curpkg)' > /dev/null) ; then \
+       @if (echo $(OCAML_OCAMLDOC_PACKAGES) | egrep '( |^)$(cdbs_curpkg)( |$$)' > /dev/null) ; then \
                sed -e 's/@PACKAGE@/$(cdbs_curpkg)/g' \
                        $(_cdbs_class_path)/ocaml-docbase-template.txt$(_cdbs_makefile_suffix) \
                        > debian/$(cdbs_curpkg).doc-base.ocamldoc-apiref ; \
index 80ec1406bc92257fbcc90205c6bce1438bd7f3ed..67538de0ee01bb0132ed8293601202648b5140ea 100644 (file)
@@ -6,11 +6,12 @@ ocaml (3.10.0-8) unstable; urgency=low
       likely to generate empty API references ...)
     - add support for automatic generation of doc-base entries for ocamldoc
       generated API reference
+    - better test for package membership to OCAML_OCAMLDOC_PACKAGES
   * debian/ocaml-base-nox.README.Debian
     - add an entry describing the requirement for compiling ocamldoc-generated
       LaTeX documentation (closes: #420782)
 
- -- Stefano Zacchiroli <zack@debian.org>  Sun, 02 Sep 2007 18:32:17 +0200
+ -- Stefano Zacchiroli <zack@debian.org>  Sun, 02 Sep 2007 19:11:14 +0200
 
 ocaml (3.10.0-7) unstable; urgency=low