[Frugalware-darcs] pacman-tools: bumppkg: new -t $tree option

VMiklos vmiklos at frugalware.org
Mon Jun 4 12:17:54 CEST 2007


Darcsweb-Url: http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=pacman-tools;a=darcs_commitdiff;h=20070604101648-e2957-b95f67c8b432a09a37877fb67f53d5a932e9ac43.gz;

[bumppkg: new -t $tree option
VMiklos <vmiklos at frugalware.org>**20070604101648] {
hunk ./bumppkg 5
-#   Copyright (c) 2006 by Miklos Vajna <vmiklos at frugalware.org>
+#   Copyright (c) 2006-2007 by Miklos Vajna <vmiklos at frugalware.org>
hunk ./bumppkg 107
-	sudo makepkg -c$1 || die "build failed!"
+	sudo makepkg -t $1 -c$2 || die "build failed!"
hunk ./bumppkg 115
+tree=$repos
+if [ "$1" == "-t" ]; then
+	tree=$2
+	shift 2
+fi
+
hunk ./bumppkg 124
-	update_pkgrel $(($pkgrel+1))
-	do_build u
+	update_pkgrel $(echo $pkgrel|sed 's/[0-9]\+$//')$(($(echo $pkgrel|sed 's/.*[^0-9]\([0-9]\+\)$/\1/')+1))
+	do_build $tree u
hunk ./bumppkg 127
-		repman rec "$1"
+		repoman rec "$1"
hunk ./bumppkg 131
-		repoman -k push
+		repoman -t $tree -k push
hunk ./bumppkg 141
-do_build
+do_build $tree
hunk ./bumppkg 143
-	repoman -k push
+	repoman -t $tree -k push
}


More information about the Frugalware-darcs mailing list