up to 50f
[packages/mksh.git] / get-source.sh
1 #!/bin/sh
2 set -e
3
4 CVSROOT=_anoncvs@anoncvs.mirbsd.org:/cvs
5 module=mksh
6 tag=mksh-R50d
7 branch=mksh-R50stable
8 out=branch.diff
9
10 d=$-
11 filter() {
12         set -$d
13         # remove revno's for smaller diffs
14         sed -e 's,^\([-+]\{3\} .*\)\t(revision [0-9]\+)$,\1,'
15 }
16
17 echo >&2 "Running diff: $tag -> $branch"
18
19 cvs -qz8 -d "$CVSROOT" rdiff -u -r"$tag" -r"$branch" "$module" > $out.tmp
20
21 if cmp -s $out{,.tmp}; then
22         echo >&2 "No new diffs..."
23         rm -f $out.tmp
24         exit 0
25 fi
26 mv -f $out{.tmp,}
27
28 ./dropin $out
This page took 0.027419 seconds and 3 git commands to generate.