Bug 169983 - adding git+svn to ports/Makefile
Summary: adding git+svn to ports/Makefile
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Beat Gaetzi
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-18 21:20 UTC by clutton
Modified: 2012-08-02 13:21 UTC (History)
0 users

See Also:


Attachments
file.diff (827 bytes, patch)
2012-07-18 21:20 UTC, clutton
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description clutton 2012-07-18 21:20:00 UTC
This patch add 'git svn rebase' command to 'make update' task.

Fix: Patch attached with submission follows:
Comment 1 Beat Gaetzi freebsd_committer freebsd_triage 2012-07-18 21:57:19 UTC
Responsible Changed
From-To: freebsd-ports-bugs->portmgr

portmgr territory.
Comment 2 Beat Gaetzi freebsd_committer freebsd_triage 2012-07-27 07:11:49 UTC
Responsible Changed
From-To: portmgr->beat

Take for exp-run.
Comment 3 dfilter service freebsd_committer freebsd_triage 2012-08-02 13:19:50 UTC
Author: beat
Date: Thu Aug  2 12:19:35 2012
New Revision: 301859
URL: http://svn.freebsd.org/changeset/ports/301859

Log:
  - Sync update target with src/ [1]
  - Add 'git svn rebase' command to update target [2]
  
  PR:		ports/169970 [1], ports/169983 [2]
  Submitted by:	avilla@ [1], clutton <mbsd AT isgroup.com.ua> [2]
  Tested by:	exp-run on pointyhat

Modified:
  head/Makefile

Modified: head/Makefile
==============================================================================
--- head/Makefile	Thu Aug  2 09:02:43 2012	(r301858)
+++ head/Makefile	Thu Aug  2 12:19:35 2012	(r301859)
@@ -152,6 +152,7 @@ print-index:	${INDEXDIR}/${INDEXFILE}
 	@awk -F\| '{ printf("Port:\t%s\nPath:\t%s\nInfo:\t%s\nMaint:\t%s\nIndex:\t%s\nB-deps:\t%s\nR-deps:\t%s\nE-deps:\t%s\nP-deps:\t%s\nF-deps:\t%s\nWWW:\t%s\n\n", $$1, $$2, $$4, $$6, $$7, $$8, $$9, $$11, $$12, $$13, $$10); }' < ${INDEXDIR}/${INDEXFILE}
 
 CVS?= cvs
+GIT?= git
 SVN?= svn
 SUP?= csup
 PORTSNAP?= portsnap
@@ -168,15 +169,19 @@ update:
 	@${SUP} ${SUPFLAGS} ${PORTSSUPFILE}
 .elif defined(CVS_UPDATE)
 	@echo "--------------------------------------------------------------"
-	@echo ">>> Updating ${.CURDIR} from cvs repository" ${CVSROOT}
+	@echo ">>> Updating ${.CURDIR} from CVS repository" ${CVSROOT}
 	@echo "--------------------------------------------------------------"
 	cd ${.CURDIR}; ${CVS} -R -q update -A -P -d -I!
-.else
-.if exists(${.CURDIR}/.svn)
+.elif exists(${.CURDIR}/.svn)
+	@echo "--------------------------------------------------------------"
+	@echo ">>> Updating ${.CURDIR} using Subversion"
 	@echo "--------------------------------------------------------------"
-	@echo ">>> Updating ${.CURDIR} from svn repository"
+	cd ${.CURDIR}; ${SVN} update
+.elif exists(${.CURDIR}/.git)
 	@echo "--------------------------------------------------------------"
-	cd ${.CURDIR}; ${SVN} -q update
+	@echo ">>> Updating ${.CURDIR} from git+svn repository"
+	@echo "--------------------------------------------------------------"
+	cd ${.CURDIR}; ${GIT} ${SVN} rebase
 .else
 	@echo "--------------------------------------------------------------"
 	@echo ">>> Running ${PORTSNAP}"
@@ -193,4 +198,3 @@ update:
 .endif
 .endif
 .endif
-.endif
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 4 Beat Gaetzi freebsd_committer freebsd_triage 2012-08-02 13:21:34 UTC
State Changed
From-To: open->closed

Committed. Thanks!