]> git.sur5r.net Git - openldap/blobdiff - build/man.mk
More for ITS#5245
[openldap] / build / man.mk
index 9fe4528e52cc264bff4d474743ca2b058d68ccc7..b08003d027be14c82e1054ff5d318699ab438f4d 100644 (file)
@@ -1,7 +1,7 @@
 # $OpenLDAP$
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
-## Copyright 1998-2005 The OpenLDAP Foundation.
+## Copyright 1998-2008 The OpenLDAP Foundation.
 ## All rights reserved.
 ##
 ## Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@ all-common:
        PAGES=`cd $(srcdir); echo *.$(MANSECT)`; \
        for page in $$PAGES; do \
                $(SED) -e "s%LDVERSION%$(VERSION)%" \
-                       -e 's%ETCDIR%$(sysconfdir)%' \
+                       -e 's%ETCDIR%$(sysconfdir)%g' \
                        -e 's%LOCALSTATEDIR%$(localstatedir)%' \
                        -e 's%SYSCONFDIR%$(sysconfdir)%' \
                        -e 's%DATADIR%$(datadir)%' \
@@ -32,7 +32,8 @@ all-common:
                        -e 's%LIBDIR%$(libdir)%' \
                        -e 's%LIBEXECDIR%$(libexecdir)%' \
                        -e 's%RELEASEDATE%$(RELEASEDATE)%' \
-                       $(srcdir)/$$page > $$page.$(TMP_SUFFIX); \
+                               $(srcdir)/$$page \
+                       | (cd $(srcdir); $(SOELIM) -) > $$page.$(TMP_SUFFIX); \
        done
 
 install-common: