[Pkg-bazaar-commits] ./bzr/unstable r690: add-bzr-to-baz allows multiple arguments
Martin Pool
mbp at sourcefrog.net
Fri Apr 10 08:20:43 UTC 2009
------------------------------------------------------------
revno: 690
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Wed 2005-06-15 14:24:01 +1000
message:
add-bzr-to-baz allows multiple arguments
modified:
contrib/add-bzr-to-baz
-------------- next part --------------
=== modified file 'contrib/add-bzr-to-baz'
--- a/contrib/add-bzr-to-baz 2005-06-06 13:24:18 +0000
+++ b/contrib/add-bzr-to-baz 2005-06-15 04:24:01 +0000
@@ -3,11 +3,14 @@
# Take a file that is versioned by bzr and
# add it to baz with the same file-id.
-if [ $# -ne 1 ]
+if [ $# -lt 1 ]
then
echo "usage: $0 FILE" >&2
exit 1
fi
-baz add -i "$( bzr file-id "$1" )" "$1"
+for f
+do
+ baz add -i "$( bzr file-id "$f" )" "$f"
+done
More information about the Pkg-bazaar-commits
mailing list