~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to contrib/add-bzr-to-baz

  • Committer: Martin Pool
  • Date: 2005-06-06 13:24:18 UTC
  • Revision ID: mbp@sourcefrog.net-20050606132418-1082c87e2473e266
- manpage generator by Hans Ulrich Niedermann

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh -e
2
2
 
3
 
# Add a file that's version by bzr to baz with the same file-id
 
3
# Take a file that is versioned by bzr and
 
4
# add it to baz with the same file-id.
4
5
 
5
6
if [ $# -ne 1 ]
6
7
then
8
9
    exit 1
9
10
fi
10
11
 
11
 
baz add -i $( bzr file-id $1 ) $1
 
12
baz add -i "$( bzr file-id "$1" )" "$1"
12
13