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

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Thu May 7 23:23:08 CEST 2009


Revision: 4757
          http://gar.svn.sourceforge.net/gar/?rev=4757&view=rev
Author:   dmichelsen
Date:     2009-05-07 21:23:07 +0000 (Thu, 07 May 2009)

Log Message:
-----------
mGAR v2: Update template for newpkg-% to dynamic gspec and linked gar

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

Modified: csw/mgar/pkg/Makefile
===================================================================
--- csw/mgar/pkg/Makefile	2009-05-07 21:09:57 UTC (rev 4756)
+++ csw/mgar/pkg/Makefile	2009-05-07 21:23:07 UTC (rev 4757)
@@ -64,10 +64,9 @@
 	echo "";                                                        								\
 	echo "MASTER_SITES = ";                                         								\
 	echo "DISTFILES  = $$(GARNAME)-$$(GARVERSION).tar.gz";          								\
-	echo "DISTFILES += $$(call admfiles,CSWpackage,)";              								\
 	echo "";                                                        								\
 	echo "# We define upstream file regex so we can be notifed of new upstream software release";  	\
-	echo "UFILES_REGEX = $(GARNAME)-(\d+(?:\.\d+)*).tar.gz";										\
+	echo "UFILES_REGEX = $$(GARNAME)-(\d+(?:\.\d+)*).tar.gz";										\
 	echo "";                                                        								\
 	echo "# If the url used to check for software update is different of MASTER_SITES, then ";   	\
 	echo "# uncomment the next line. Otherwise it is set by default to the value of MASTER_SITES"; 	\
@@ -77,15 +76,15 @@
 	echo "";                                                        								\
 	echo "include gar/category.mk";                                 								\
 	) > $*/trunk/Makefile
-	@svn add $*/trunk/Makefile
-	@(echo "%var            bitname package";                       								\
-	echo "%var            pkgname CSWpackage";                      								\
-	echo "%include        url file://%{PKGLIB}/csw_dyndepend.gspec";								\
-	echo "%copyright      url file://%{WORKSRC}/LICENSE";           								\
-	) > $*/trunk/files/CSWpackage.gspec
+	@touch $*/trunk/checksums
+	@svn add $*/trunk/Makefile $*/trunk/checksums
 	@echo "cookies\ndownload\nwork\n" | svn propset svn:ignore -F /dev/fd/0 $*/trunk
 	@echo "gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2" | svn propset svn:externals -F /dev/fd/0 $*/trunk
-	@svn co https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2 $*/trunk/gar
+	@if [ -d ../gar/v2 ]; then \
+	  ln -s ../../../gar/v2 $*/trunk/gar; \
+	else \
+	  svn co https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2 $*/trunk/gar; \
+	fi
 	@echo
 	@echo "Your package is set up for editing at $*/trunk"
 	@echo "Please don't forget to add the gspec-file!"


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