4 |
# This must be run in a branched top-level guile-core dir (so |
# This must be run in a branched top-level guile-core dir (so |
5 |
# that CVS/Tag looks something like: branch_release-X-Y). |
# that CVS/Tag looks something like: branch_release-X-Y). |
6 |
# |
# |
7 |
# Behavior: |
# Description: |
8 |
# - check all files under cwd are unmodified (sync'ed w/ cvs repo) |
# - check all files under cwd are unmodified (sync'ed w/ cvs repo) |
9 |
# - sh -x autogen.sh |
# - sh -x autogen.sh |
|
# - cvs tag release_TAG (where TAG is $1) |
|
10 |
# - create distdir ../dist.$branch |
# - create distdir ../dist.$branch |
11 |
# - in $distdir do configure, make, make check |
# - in $distdir do configure, make, make check |
12 |
# - in $distdir do make distcheck |
# - in $distdir do make distcheck |
13 |
|
# - cvs tag TAG (where TAG is $1) |
14 |
# |
# |
15 |
# TODO: Handle non-standard workbook location. |
# TODO: Handle non-standard workbook location. |
16 |
# Support skipping steps, for restarts. |
# Support skipping steps, for restarts. |
29 |
exit 1 |
exit 1 |
30 |
fi |
fi |
31 |
|
|
32 |
|
trap "cd $startdir ; cvs tag -d TEMP-$tag" 0 1 2 15 |
33 |
|
|
34 |
set_branch_and_derived_vars () |
set_branch_and_derived_vars () |
35 |
{ |
{ |
36 |
if [ -f pre-inst-guile.in -a -d CVS -a -f CVS/Tag ] ; then |
if [ -f pre-inst-guile.in -a -d CVS -a -f CVS/Tag ] ; then |
48 |
|
|
49 |
check_unmodified_tag_and_autogen () |
check_unmodified_tag_and_autogen () |
50 |
{ |
{ |
51 |
cvs tag -c $tag && sh -x autogen.sh |
cvs tag -c TEMP-$tag && sh -x autogen.sh |
52 |
} |
} |
53 |
|
|
54 |
cd_distdir_configure_build_and_check () |
cd_distdir_configure_build_and_check () |
66 |
make distcheck |
make distcheck |
67 |
} |
} |
68 |
|
|
69 |
|
everything_works_so_tag_it_for_real () |
70 |
|
{ |
71 |
|
cd $startdir |
72 |
|
cvs tag $tag |
73 |
|
} |
74 |
|
|
75 |
# todo: support command-line options to skip any of these steps |
# todo: support command-line options to skip any of these steps |
76 |
set_branch_and_derived_vars |
set_branch_and_derived_vars |
77 |
check_unmodified_tag_and_autogen |
check_unmodified_tag_and_autogen |
78 |
cd_distdir_configure_build_and_check |
cd_distdir_configure_build_and_check |
79 |
cd_distdir_and_make_distcheck |
cd_distdir_and_make_distcheck |
80 |
|
everything_works_so_tag_it_for_real # do last |
81 |
|
|
82 |
# dist-guile ends here |
# dist-guile ends here |