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/