~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to contrib/pwk

  • Committer: aaron.bentley at utoronto
  • Date: 2005-08-26 01:50:01 UTC
  • mto: (974.1.47)
  • mto: This revision was merged to the branch mainline in revision 1178.
  • Revision ID: aaron.bentley@utoronto.ca-20050826015001-d8b6e6330cb6401a
Merged from bzr.24

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
PWK_ROOT='http://patchwork.ozlabs.org/bazaar-ng'
11
11
PWK_AUTH_ROOT='https://patchwork.ozlabs.org/bazaar-ng'
12
12
 
 
13
# bzr uses -p0 style; others use -p1
 
14
PATCH_OPTS='-p0'
 
15
 
13
16
usage() {
14
17
    cat <<EOF
15
18
usage: 
39
42
    catpatch $2 | ${PAGER:-less}
40
43
    ;;
41
44
try)
42
 
    catpatch $2 | patch -p1 --dry-run
 
45
    catpatch $2 | patch -p0 --dry-run
43
46
    ;;
44
47
apply)
45
 
    catpatch $2 | patch -p1
 
48
    catpatch $2 | patch -p0
46
49
    ;;
47
50
*)
48
51
    usage
49
52
    exit 1
50
 
esac
 
53
esac
 
 
b'\\ No newline at end of file'