[Frugalware-darcs] vmexam: darcs2git: support for relative target paths

VMiklos vmiklos at frugalware.org
Tue Jun 12 19:32:30 CEST 2007


Darcsweb-Url: http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=vmexam;a=darcs_commitdiff;h=20070612005815-e2957-57115511cd4aaae288b5440a0d4c32a5e7f511a7.gz;

[darcs2git: support for relative target paths
VMiklos <vmiklos at frugalware.org>**20070612005815
 also hardwire the encoding to latin2 for now, better than nothing
] {
hunk ./darcs/darcs2git 36
-myname=`basename $1`
+src=$1
+target=$2
+
+cd `dirname $target`
+target="`pwd`/`basename $target`"
+
+myname=`basename $src`
hunk ./darcs/darcs2git 59
-repository = $1
+repository = $src
hunk ./darcs/darcs2git 63
-repository = $2
+repository = $target
+encoding = latin2
hunk ./darcs/darcs2git 67
-rm -rf $2 darcs git $myname.*
+rm -rf $target darcs git $myname.*
}


More information about the Frugalware-darcs mailing list