[csw-devel] SF.net SVN: gar:[2490] csw/mgar/pkg/Makefile

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Tue Dec 9 17:11:21 CET 2008


Revision: 2490
          http://gar.svn.sourceforge.net/gar/?rev=2490&view=rev
Author:   dmichelsen
Date:     2008-12-09 16:11:20 +0000 (Tue, 09 Dec 2008)

Log Message:
-----------
mGAR: Fix target 'garlinks' if more than one external reference is given

Modified Paths:
--------------
    csw/mgar/pkg/Makefile

Modified: csw/mgar/pkg/Makefile
===================================================================
--- csw/mgar/pkg/Makefile	2008-12-09 14:19:37 UTC (rev 2489)
+++ csw/mgar/pkg/Makefile	2008-12-09 16:11:20 UTC (rev 2490)
@@ -36,10 +36,15 @@
 # to generate symbolic links instead of externally checked out dirs
 
 # Lines returned by 'svn propget -R' look like this:
-#   cpan/Test-Memory-Cycle/trunk - gar https://gar.svn.sf.net/svnroot/gar/csw/mgar/gar/v1
+#
+# gar/trunk - gar https://gar.svn.sf.net/svnroot/gar/csw/mgar/gar/v1
+# gar-v1 https://gar.svn.sf.net/svnroot/gar/csw/mgar/gar/v1
+# gar-v2 https://gar.svn.sf.net/svnroot/gar/csw/mgar/gar/v2
+# 
+# ...
 
 garlinks:
-	@(svn propget svn:externals -R | perl -ane 'next if( /^$$/ );($$path,$$sep,$$dir,$$link)=@F;($$upsteps=$$path)=~s![^/]+!..!g;(($$linkdest=$$link))=~ s!https://gar.svn.sf.net/svnroot/gar/csw/mgar!$$upsteps!;print "Linking $$path/$$dir to ../$$linkdest", symlink("../$$linkdest","$$path/$$dir") ? "" : " failed", "\n";')
+	@(svn propget svn:externals -R | perl -ane 'next if( /^$$/ ); if( $$F[1] eq "-" ) { ($$path,$$sep,$$dir,$$link)=@F; } else { ($$dir,$$link) = @F; } ($$upsteps=$$path)=~s![^/]+!..!g;(($$linkdest=$$link))=~ s!https://gar.svn.sf.net/svnroot/gar/csw/mgar!$$upsteps!;print "Linking $$path/$$dir to ../$$linkdest", symlink("../$$linkdest","$$path/$$dir") ? "" : " failed", "\n";')
 
 pkglist:
 	@for i in $(filter-out $(FILTER_DIRS),$(foreach D,. $(SUBDIRS),$(wildcard $D/*/))) ; 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