[csw-devel] [Fwd: SF.net SVN: gar:[2683] csw/mgar/gar/v2]

Trygve Laugstøl trygvel at opencsw.org
Mon Dec 22 12:37:04 CET 2008


Hei!

I've added some targets to gar [1] to make it easier to work with 
Subversion. Currently it support updating the package and updating gar. 
I'd like to get some feedback on the process that people are using when 
working with the source tree to create targets that match how people use it.

Do an update of your gar/ directory and go "gmake scm-help" to get the 
overview (or just read further down in the email).

[1]: only v2 for now until they're deemed useful for everyone.

--
Trygve

-------- Original Message --------
Subject: [csw-devel] SF.net SVN: gar:[2683] csw/mgar/gar/v2
Date: Mon, 22 Dec 2008 11:31:17 +0000
From: trygvis at users.sourceforge.net
Reply-To: Developers list <devel at lists.opencsw.org>
To: devel at lists.opencsw.org

Revision: 2683
           http://gar.svn.sourceforge.net/gar/?rev=2683&view=rev
Author:   trygvis
Date:     2008-12-22 11:31:17 +0000 (Mon, 22 Dec 2008)

Log Message:
-----------
o Adding some targets to work with svn.

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

Added Paths:
-----------
     csw/mgar/gar/v2/bin/svnignore
     csw/mgar/gar/v2/gar.svn.mk
     csw/mgar/gar/v2/scm-help

Added: csw/mgar/gar/v2/bin/svnignore
===================================================================
--- csw/mgar/gar/v2/bin/svnignore	                        (rev 0)
+++ csw/mgar/gar/v2/bin/svnignore	2008-12-22 11:31:17 UTC (rev 2683)
@@ -0,0 +1,28 @@
+#!/bin/sh
+#
+# Copyright 2008-2009 OpenCSW
+#
+# Redistribution and/or use, with or without modification, is
+# permitted. This software is without warranty of any kind. The
+# author(s) shall not be liable in the event that use of the
+# software causes damage.
+#
+# gar.svn.mk - Targets for working with svn
+
+# Read the comma separated ignores from stdin and merges it with any 
existing
+# ignores set on the directory.
+
+ignores=`mktemp`-ignores
+existing_ignores=`mktemp`-existing
+new_ignores=`mktemp`-new
+
+while [ "$1" != "" ]; do
+  echo $1 >> $ignores
+  shift
+done
+
+svn pg svn:ignore . > $existing_ignores
+cat $ignores $existing_ignores | sort | uniq > $new_ignores
+svn ps svn:ignore . -F $new_ignores
+
+rm -rf $ignores $existing_ignores $new_ignores


Property changes on: csw/mgar/gar/v2/bin/svnignore
___________________________________________________________________
Added: svn:executable
    + *

Modified: csw/mgar/gar/v2/gar.conf.mk
===================================================================
--- csw/mgar/gar/v2/gar.conf.mk	2008-12-22 01:28:00 UTC (rev 2682)
+++ csw/mgar/gar/v2/gar.conf.mk	2008-12-22 11:31:17 UTC (rev 2683)
@@ -568,8 +568,7 @@
  FILE_SITES = $(foreach DIR,$(FILEDIR) $(GARCHIVEPATH),file://$(DIR)/)

  # Extra libraries
-EXTRA_LIBS = gar.pkg.mk gar.common.mk
-
+EXTRA_LIBS = gar.pkg.mk gar.common.mk gar.svn.mk
  ccenv:
  	@echo "      Compiler: $(GARCOMPILER)"
  	@echo

Added: csw/mgar/gar/v2/gar.svn.mk
===================================================================
--- csw/mgar/gar/v2/gar.svn.mk	                        (rev 0)
+++ csw/mgar/gar/v2/gar.svn.mk	2008-12-22 11:31:17 UTC (rev 2683)
@@ -0,0 +1,29 @@
+# vim: ft=make ts=4 sw=4 noet
+#
+# $Id$
+#
+# Copyright 2008-2009 OpenCSW
+#
+# Redistribution and/or use, with or without modification, is
+# permitted. This software is without warranty of any kind. The
+# author(s) shall not be liable in the event that use of the
+# software causes damage.
+#
+# gar.svn.mk - Targets for working with svn
+#
+
+scm-help:
+	@cat $(GARDIR)/scm-help
+
+scm-update-all: scm-update-package scm-update-gar
+
+scm-update-package:
+	$(SVN) --ignore-externals up
+
+scm-update-gar:
+	cd $(GARDIR) && $(SVN) --ignore-externals up
+
+scm-update-ignores:
+	$(GARDIR)/bin/svnignore work cookies download
+
+.PHONY: scm-help scm-update-all scm-update-package scm-update-gar

Added: csw/mgar/gar/v2/scm-help
===================================================================
--- csw/mgar/gar/v2/scm-help	                        (rev 0)
+++ csw/mgar/gar/v2/scm-help	2008-12-22 11:31:17 UTC (rev 2683)
@@ -0,0 +1,10 @@
+These are the available SCM targets
+
+scm-update-all:
+  Updates both the package files and the gar/ directory
+
+scm-update-package:
+  Updates the package files
+
+scm-update-gar:
+  Updates the contents of the gar/ directory


This was sent by the SourceForge.net collaborative development platform, 
the world's largest Open Source development site.
_______________________________________________
devel mailing list
devel at lists.opencsw.org
https://lists.opencsw.org/mailman/listinfo/devel



More information about the devel mailing list