[csw-devel] SF.net SVN: gar:[16633] csw/mgar/pkg/postgresql/branches/postgresql-9. 0-raos/Makefile
guengel at users.sourceforge.net
guengel at users.sourceforge.net
Sat Dec 31 14:03:27 CET 2011
Revision: 16633
http://gar.svn.sourceforge.net/gar/?rev=16633&view=rev
Author: guengel
Date: 2011-12-31 13:03:27 +0000 (Sat, 31 Dec 2011)
Log Message:
-----------
postgresql/branches/postgresql-9.0-raos: Backported changes to -doc from 9.1.
Modified Paths:
--------------
csw/mgar/pkg/postgresql/branches/postgresql-9.0-raos/Makefile
Modified: csw/mgar/pkg/postgresql/branches/postgresql-9.0-raos/Makefile
===================================================================
--- csw/mgar/pkg/postgresql/branches/postgresql-9.0-raos/Makefile 2011-12-31 12:56:19 UTC (rev 16632)
+++ csw/mgar/pkg/postgresql/branches/postgresql-9.0-raos/Makefile 2011-12-31 13:03:27 UTC (rev 16633)
@@ -316,8 +316,7 @@
PKGFILES_CSW$(NAME)-dev = .*/pgxs/.*
PKGFILES_CSW$(NAME)-dev += $(PKGFILES_DEVEL)
PKGFILES_CSW$(NAME)-dev += $(foreach n,$(BIN_NAMES_DEVEL),.*$(n)$$)
-PKGFILES_CSW$(NAME)-dev += $(foreach n,$(BIN_NAMES_DEVEL),.*/man1/$(n)-$(BASE_VERSION_NODOT)\.1$$)
-PKGFILES_CSW$(NAME)-dev += .*/man5/.*
+PKGFILES_CSW$(NAME)-dev += $(foreach n,$(BIN_NAMES_DEVEL),.*/man1/$(n)\.1$$)
# Alternatives for -dev have no version appended
PKGFILES_CSW$(NAME)-dev += .*/alternatives/$(NAME)_dev.*
PKGFILES_CSW$(NAME)-dev += .*/CSW$(NAME)-dev.postmsg
@@ -342,7 +341,8 @@
PACKAGES += CSW$(NAME)$(BASE_VERSION_NODOT)-doc
ARCHALL_CSW$(NAME)$(BASE_VERSION_NODOT)-doc = 1
SPKG_DESC_CSW$(NAME)$(BASE_VERSION_NODOT)-doc = PostgreSQL $(VERSION), Documentation Files
-PKGFILES_CSW$(NAME)$(BASE_VERSION_NODOT)-doc = .*/doc/$(NAME)/$(BASE_VERSION_NODOT)/.*\.(html|css)
+PKGFILES_CSW$(NAME)$(BASE_VERSION_NODOT)-doc = .*/doc/$(NAME)/$(BASE_VERSION_NODOT)/.*\.(html|css)
+PKGFILES_CSW$(NAME)$(BASE_VERSION_NODOT)-doc += .*/man5/.*
PACKAGES += CSWlibecpg-compat3
SPKG_DESC_CSWlibecpg-compat3 = PostgreSQL $(VERSION), libecpg_compat
@@ -480,10 +480,22 @@
$(foreach a,$(myALTERNATIVES), $(foreach i,$(NEEDED_ISAS), $(shell ginstall -d $(PKGROOT)$(sharedstatedir)/alternatives ; echo "$(ALTERNATIVE_$(a)_$(i))" > $(if $(subst dev,,$(a)),$(PKGROOT)$(sharedstatedir)/alternatives/$(NAME)$(BASE_VERSION_NODOT)_$(a)_$(i),$(PKGROOT)$(sharedstatedir)/alternatives/$(NAME)_$(a)_$(i)) ) ) )
# Create the PGDATA directory
ginstall -d $(PKGROOT)$(PGDATA)
-# Adjust the man page names for man1
- for f in $(PKGROOT)$(datadir)/man/man1/* ; do \
- f_no_suffix="`echo $$f | sed -e 's/.1$$//'`" ; \
- mv $$f $${f_no_suffix}-$(BASE_VERSION_NODOT).1 ; \
+# Adjust the man page names.
+ for i in 1 5 ; do \
+ test -d $(PKGROOT)$(datadir)/man/man$$i || continue ; \
+ for f in $(PKGROOT)$(datadir)/man/man$$i/* ; do \
+ suffix="`echo $$f | awk 'BEGIN { FS="." } { print $$NF }'`" ; \
+ f_no_suffix="`echo $$f | sed -e "s/\.$${suffix}$$//"`" ; \
+ dont_move=0 ; \
+ for d in $(BIN_NAMES_DEVEL) ; do \
+ bname="`basename $${f_no_suffix}`" ; \
+ if test "$${bname}" = "$$d" ; then \
+ dont_move=1 ; \
+ break ; \
+ fi ; \
+ done ; \
+ test $${dont_move} -eq 0 && mv $$f $${f_no_suffix}-$(BASE_VERSION_NODOT).$${suffix} ; \
+ done ;\
done
# Change path names in documentation
for f in $(PKGROOT)$(docdir)/$(NAME)/$(BASE_VERSION_NODOT)/html/*.html $(PKGROOT)$(mandir)/man1/*.1 $(PKGROOT)$(datadir)/$(NAME)/$(BASE_VERSION_NODOT)/*.sample ; do \
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list