[csw-devel] SF.net SVN: gar:[7490] csw/mgar/pkg/gnulinks/trunk/Makefile

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Sat Nov 28 01:55:41 CET 2009


Revision: 7490
          http://gar.svn.sourceforge.net/gar/?rev=7490&view=rev
Author:   bdwalton
Date:     2009-11-28 00:55:41 +0000 (Sat, 28 Nov 2009)

Log Message:
-----------
gnulinks: make creating an updated prototype sane; no longer include links from {sh,text,file}utils

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

Modified: csw/mgar/pkg/gnulinks/trunk/Makefile
===================================================================
--- csw/mgar/pkg/gnulinks/trunk/Makefile	2009-11-27 20:26:39 UTC (rev 7489)
+++ csw/mgar/pkg/gnulinks/trunk/Makefile	2009-11-28 00:55:41 UTC (rev 7490)
@@ -2,6 +2,10 @@
 GARVERSION = 1.2
 CATEGORIES = xtra
 
+GLINKPKGS = CSWdiffutils CSWggettext CSWggettextrt CSWbison CSWbinutils
+GLINKPKGS += CSWggrep CSWgawk CSWgsed CSWggetopt CSWfindutils
+PREREQUISITE_PKGS = $(GLINKPKGS) CSWpkgutil
+
 SPKG_SOURCEURL = No Source
 
 DESCRIPTION = Creates native symlinks for GNU tools in /opt/csw/gnu
@@ -20,7 +24,18 @@
 
 include gar/category.mk
 
+
+
 newproto:
-	@/bin/ls -1 /opt/csw/bin/g* | pkgproto | \
-		perl -plne 's,bin/g([\w\d-]+) 0755 root bin,gnu/$$1=../bin/g$$1 ? ? ?,' \
-		> $(FILEDIR)/CSWgnulinks.prototype
+	@echo Generating new prototype...
+	@( { echo /opt/csw/gnu;  \
+	     for p in $(GLINKPKGS); do \
+		pkgutil -L $$p | grep /opt/csw/bin/g; \
+	     done } | \
+		pkgproto | \
+		perl -plne 's,f none /opt/csw/bin/g([\w\d-\+\.]+) 0755 root bin,s none /opt/csw/gnu/$$1=../bin/g$$1,' | \
+		grep -v "^l " | sort > $(FILEDIR)/CSWgnulinks.prototype.new )
+	@echo Installing new prototype.
+	@mv $(FILEDIR)/CSWgnulinks.prototype.new \
+		 $(FILEDIR)/CSWgnulinks.prototype
+	@$(MAKE) makesums


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