[Libvir] make syntax-check fails with bzr checkouts

Soren Hansen soren at ubuntu.com
Wed Apr 30 07:48:56 UTC 2008


The bzr problem was obviously that vc-list-files didn't support bzr.

Failing with CVS was caused by a bashism in vc-list-files. In Ubuntu,
/bin/sh points to dash instead of bash, but vc-list-files had
"#!/bin/sh".

This patch fixes both issues:

=== modified file 'build-aux/vc-list-files'
--- build-aux/vc-list-files	2008-02-01 19:47:07 +0000
+++ build-aux/vc-list-files	2008-04-30 07:43:06 +0000
@@ -39,6 +39,8 @@
   exec git ls-files "$dir"
 elif test -d .hg; then
   exec hg locate "$dir/*"
+elif test -d .bzr; then
+  exec bzr ls --versioned --kind=file ${*:---from-root}
 elif test -d CVS; then
   if test -x build-aux/cvsu; then
     build-aux/cvsu --find --types=AFGM "$dir"
@@ -49,7 +51,7 @@
 	  sub(/CVS\/Entries/, "", f);	\
 	  print f $2;			\
 	}}'				\
-      $(find ${*-*} -name Entries -print) /dev/null;
+      $(find ${*:-*} -name Entries -print) /dev/null;
   fi
 else
   echo "$0: Failed to determine type of version control used in "`pwd` 1>&2


-- 
Soren Hansen               | 
Virtualisation specialist  | Ubuntu Server Team
Canonical Ltd.             | http://www.ubuntu.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20080430/85750374/attachment-0001.sig>


More information about the libvir-list mailing list