[Frugalware-darcs] pacman-tools: bumppkg: git support

VMiklos vmiklos at frugalware.org
Sat Jun 30 18:39:50 CEST 2007


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

[bumppkg: git support
VMiklos <vmiklos at frugalware.org>**20070629235707] {
hunk ./bumppkg 41
-	local i=`pwd`
+	local i
+	i=`git rev-parse --git-dir 2>/dev/null`
+	if [ -n "$i" ]; then
+		echo `dirname $i`
+		_scm=git
+		return
+	fi
+	i=`pwd`
hunk ./bumppkg 59
+	_scm=darcs
hunk ./bumppkg 64
-	local root i workdir
-
hunk ./bumppkg 66
+	if [ "$_scm" = "git" ]; then
+		for i in `git status .|sed '1,/Untracked files:/d;/^\(#[^\t].\|^[^#]\)/d;s/^#\t\?//'`
+		do
+			rm -rfv $root/$i
+		done
+	else
+	local root i workdir
+
hunk ./bumppkg 88
+	fi
}


More information about the Frugalware-darcs mailing list