View | Details | Raw Unified | Return to bug 215050
Collapse All | Expand All

(-)b/devel/Makefile (+1 lines)
Lines 5470-5475 Link Here
5470
    SUBDIR += tnt
5470
    SUBDIR += tnt
5471
    SUBDIR += toh
5471
    SUBDIR += toh
5472
    SUBDIR += tokamak
5472
    SUBDIR += tokamak
5473
    SUBDIR += topgit
5473
    SUBDIR += tortoisehg
5474
    SUBDIR += tortoisehg
5474
    SUBDIR += tpasm
5475
    SUBDIR += tpasm
5475
    SUBDIR += tr-eric6
5476
    SUBDIR += tr-eric6
(-)b/devel/topgit/Makefile (+25 lines)
Added Link Here
1
# $FreeBSD$
2
3
PORTNAME=	topgit
4
PORTVERSION=	201611291150
5
CATEGORIES=	devel
6
7
MAINTAINER=	joe@thrallingpenguin.com
8
COMMENT=	A different patch queue manager
9
10
LICENSE=	GPLv2
11
12
RUN_DEPENDS=	git:devel/git
13
14
USES=		gmake tar:xz
15
NO_BUILD=	yes
16
17
USE_GITHUB=	yes
18
GH_ACCOUNT=	greenrd
19
GH_PROJECT=	topgit
20
GH_TAGNAME=	736f664
21
22
do-install:
23
	cd ${WRKSRC} && gmake prefix=${PREFIX} DESTDIR=${STAGEDIR} install
24
25
.include <bsd.port.mk>
(-)b/devel/topgit/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1480445663
2
SHA256 (greenrd-topgit-201611291150-736f664_GH0.tar.gz) = 2a405db941c4dceda38d4328f6ecc49e20680a6a9ebabc83537143df32f15732
3
SIZE (greenrd-topgit-201611291150-736f664_GH0.tar.gz) = 40686
(-)b/devel/topgit/files/patch-gnu-sed-compat (+76 lines)
Added Link Here
1
diff --git tg-base.sh tg-base.sh
2
index c42157f..5ef4084 100644
3
--- tg-base.sh
4
+++ tg-base.sh
5
@@ -20,7 +20,7 @@ fi
6
 
7
 rv=0
8
 for rev in "$@"; do
9
-	name="$( { git symbolic-ref -q "$rev" || echo "$rev"; } | sed 's#^refs/\(heads\|top-bases\)/##')"
10
+	name="$( { git symbolic-ref -q "$rev" || echo "$rev"; } | sed -r 's#^refs/(heads|top-bases)/##')"
11
 	git rev-parse --short --verify "refs/top-bases/$name" 2>/dev/null || {
12
 		rv=1
13
 		echo $rev is not a TopGit branch >&2
14
diff --git tg-depend.sh tg-depend.sh
15
index cf78946..64073df 100644
16
--- tg-depend.sh
17
+++ tg-depend.sh
18
@@ -43,7 +43,7 @@ branchrev="$(git rev-parse --verify "$name" 2>/dev/null)" ||
19
 	die "invalid branch name: $name"
20
 
21
 # Check that we are on a TopGit branch.
22
-current_name="$(git symbolic-ref HEAD | sed 's#^refs/\(heads\|top-bases\)/##')"
23
+current_name="$(git symbolic-ref HEAD | sed -r 's#^refs/(heads|top-bases)/##')"
24
 current_base_rev="$(git rev-parse --short --verify "refs/top-bases/$current_name" 2>/dev/null)" ||
25
 	die "not a TopGit-controlled branch"
26
 
27
diff --git tg-info.sh tg-info.sh
28
index 0ff82d1..98140ba 100644
29
--- tg-info.sh
30
+++ tg-info.sh
31
@@ -20,7 +20,7 @@ while [ -n "$1" ]; do
32
 	esac
33
 done
34
 
35
-[ -n "$name" ] || name="$(git symbolic-ref HEAD | sed 's#^refs/\(heads\|top-bases\)/##')"
36
+[ -n "$name" ] || name="$(git symbolic-ref HEAD | sed -r 's#^refs/(heads|top-bases)/##')"
37
 base_rev="$(git rev-parse --short --verify "refs/top-bases/$name" 2>/dev/null)" ||
38
 	die "not a TopGit-controlled branch"
39
 
40
diff --git tg-summary.sh tg-summary.sh
41
index 3b4331c..affdf14 100644
42
--- tg-summary.sh
43
+++ tg-summary.sh
44
@@ -31,7 +31,7 @@ while [ -n "$1" ]; do
45
 	esac
46
 done
47
 
48
-curname="$(git symbolic-ref HEAD | sed 's#^refs/\(heads\|top-bases\)/##')"
49
+curname="$(git symbolic-ref HEAD | sed -r 's#^refs/(heads|top-bases)/##')"
50
 
51
 [ "$terse$graphviz$sort$deps" = "" ] ||
52
 	[ "$terse$graphviz$sort$deps" = "1" ] ||
53
diff --git tg-update.sh tg-update.sh
54
index ce64789..1a73b1d 100644
55
--- tg-update.sh
56
+++ tg-update.sh
57
@@ -31,7 +31,7 @@ while [ -n "$1" ]; do
58
 done
59
 [ -z "$pattern" ] && pattern=refs/top-bases
60
 
61
-current="$(git symbolic-ref HEAD 2>/dev/null | sed 's#^refs/\(heads\|top-bases\)/##')"
62
+current="$(git symbolic-ref HEAD 2>/dev/null | sed -r 's#^refs/(heads|top-bases)/##')"
63
 if [ -z "$all" ]; then
64
 	if [ -z "$name" ]; then
65
 		name="$current"
66
@@ -76,8 +76,8 @@ update_branch() {
67
 
68
 		cat "$depcheck" |
69
 			sed 's/ [^ ]* *$//' | # last is $name
70
-			sed 's/.* \([^ ]*\)$/+\1/' | # only immediate dependencies
71
-			sed 's/^\([^+]\)/-\1/' | # now each line is +branch or -branch (+ == recurse)
72
+			sed -r 's/.* ([^ ]*)$/+\1/' | # only immediate dependencies
73
+			sed -r 's/^([^+])/-\1/' | # now each line is +branch or -branch (+ == recurse)
74
 			uniq -s 1 | # fold branch lines; + always comes before - and thus wins within uniq
75
 			while read depline; do
76
 				action="$(echo "$depline" | cut -c 1)"
(-)b/devel/topgit/pkg-descr (+8 lines)
Added Link Here
1
TopGit aims to make handling of large amounts of interdependent topic
2
branches easier. In fact, it is designed especially for the case where
3
you maintain a queue of third-party patches on top of another (perhaps
4
Git-controlled) project and want to easily organize, maintain and submit
5
them - TopGit achieves that by keeping a separate topic branch for each
6
patch and providing some tools to maintain the branches.
7
8
WWW: https://github.com/greenrd/topgit
(-)b/devel/topgit/pkg-plist (+41 lines)
Added Link Here
1
bin/tg
2
libexec/topgit/hooks/pre-commit
3
libexec/topgit/tg-annihilate
4
libexec/topgit/tg-base
5
libexec/topgit/tg-checkout
6
libexec/topgit/tg-create
7
libexec/topgit/tg-delete
8
libexec/topgit/tg-depend
9
libexec/topgit/tg-export
10
libexec/topgit/tg-files
11
libexec/topgit/tg-import
12
libexec/topgit/tg-info
13
libexec/topgit/tg-log
14
libexec/topgit/tg-mail
15
libexec/topgit/tg-next
16
libexec/topgit/tg-patch
17
libexec/topgit/tg-prev
18
libexec/topgit/tg-push
19
libexec/topgit/tg-remote
20
libexec/topgit/tg-summary
21
libexec/topgit/tg-update
22
share/topgit/leaves.awk
23
share/topgit/tg-annihilate.txt
24
share/topgit/tg-base.txt
25
share/topgit/tg-checkout.txt
26
share/topgit/tg-create.txt
27
share/topgit/tg-delete.txt
28
share/topgit/tg-depend.txt
29
share/topgit/tg-export.txt
30
share/topgit/tg-files.txt
31
share/topgit/tg-import.txt
32
share/topgit/tg-info.txt
33
share/topgit/tg-log.txt
34
share/topgit/tg-mail.txt
35
share/topgit/tg-next.txt
36
share/topgit/tg-patch.txt
37
share/topgit/tg-prev.txt
38
share/topgit/tg-push.txt
39
share/topgit/tg-remote.txt
40
share/topgit/tg-summary.txt
41
share/topgit/tg-update.txt

Return to bug 215050