[csw-devel] SF.net SVN: gar:[22083] csw/mgar/pkg/opencsw-manual/trunk/Makefile

pfelecan at users.sourceforge.net pfelecan at users.sourceforge.net
Tue Oct 1 19:04:58 CEST 2013


Revision: 22083
          http://gar.svn.sourceforge.net/gar/?rev=22083&view=rev
Author:   pfelecan
Date:     2013-10-01 17:04:58 +0000 (Tue, 01 Oct 2013)
Log Message:
-----------
opencsw-manual/trunk:
- fix 2 insecure lines in the copy-to-web rule
- opportunity to install anywhere

Modified Paths:
--------------
    csw/mgar/pkg/opencsw-manual/trunk/Makefile

Modified: csw/mgar/pkg/opencsw-manual/trunk/Makefile
===================================================================
--- csw/mgar/pkg/opencsw-manual/trunk/Makefile	2013-10-01 16:47:44 UTC (rev 22082)
+++ csw/mgar/pkg/opencsw-manual/trunk/Makefile	2013-10-01 17:04:58 UTC (rev 22083)
@@ -52,11 +52,13 @@
 post-install-modulated: copy-to-web
 	@$(MAKECOOKIE)
 
+# define HTDOCS such as to be possible to install anywhere:
+copy-to-web: HTDOCS = $(HOME)/public_html
 copy-to-web:
 	if echo $(DESTDIR) | grep global; then :; else \
-	  if [ -d $(HOME)/public_html/opencsw-manual ]; then \
-  		rsync -r $(DESTDIR)$(docdir)/$(CATALOGNAME_CSWopencsw-manual)/ \
-  		$(HOME)/public_html/opencsw-manual; \
+	  if [ -d $(HTDOCS)/opencsw-manual ]; then \
+		rsync -r $(DESTDIR)$(docdir)/$(CATALOGNAME_CSWopencsw-manual)/ \
+		$(HTDOCS)/opencsw-manual; \
 	  fi \
 	fi
 

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