[csw-devel] SF.net SVN: gar:[10841] csw/mgar/gar/v2/gar.lib.mk

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Mon Aug 30 16:19:03 CEST 2010


Revision: 10841
          http://gar.svn.sourceforge.net/gar/?rev=10841&view=rev
Author:   dmichelsen
Date:     2010-08-30 14:19:03 +0000 (Mon, 30 Aug 2010)

Log Message:
-----------
mGAR v2: Make sure copying during extract phase keeps symlinks

Modified Paths:
--------------
    csw/mgar/gar/v2/gar.lib.mk

Modified: csw/mgar/gar/v2/gar.lib.mk
===================================================================
--- csw/mgar/gar/v2/gar.lib.mk	2010-08-30 12:25:45 UTC (rev 10840)
+++ csw/mgar/gar/v2/gar.lib.mk	2010-08-30 14:19:03 UTC (rev 10841)
@@ -381,7 +381,8 @@
 # unchanged (not archives)
 cp-extract-%:
 	@echo " ==> Copying $(DOWNLOADDIR)/$*"
-	@cp -rp $(DOWNLOADDIR)/$* $(WORKDIR)/
+	@# Make sure to keep symlinks and don't traverse recursive ones
+	@(cd $(DOWNLOADDIR); tar cf - $*) | (cd $(WORKDIR); tar xf -)
 	@$(MAKECOOKIE)
 
 #gets the meat of a .deb into $(WORKSRC)


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