1 |
#!/bin/sh -x |
#!/bin/sh -x |
2 |
# usage: dist-guile |
# usage: dist-guile TAG |
3 |
# |
# |
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). |
7 |
# Behavior: |
# Behavior: |
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 |
10 |
# - cvs tag release_X-Y |
# - cvs tag release_TAG (where TAG is $1) |
11 |
# - create distdir ../dist.$branch |
# - create distdir ../dist.$branch |
12 |
# - in $distdir do configure, make, make check |
# - in $distdir do configure, make, make check |
13 |
# - in $distdir do make distcheck |
# - in $distdir do make distcheck |
14 |
# |
# |
15 |
# TODO: Handle non-standard workbook location (pass $1 to autogen.sh). |
# TODO: Handle non-standard workbook location. |
16 |
# Support skipping steps, for restarts. |
# Support skipping steps, for restarts. |
17 |
|
|
18 |
set -e |
set -e |
21 |
startdir=`pwd` |
startdir=`pwd` |
22 |
branch="" |
branch="" |
23 |
distdir="" |
distdir="" |
24 |
tag="" |
tag=$1 # see $workbook/build/dist-files/HACKING |
25 |
|
|
26 |
|
if [ x"$tag" = x ] ; then |
27 |
|
echo Usage: $me TAG |
28 |
|
echo where TAG is something like release_1-4-1 |
29 |
|
exit 1 |
30 |
|
fi |
31 |
|
|
32 |
set_branch_and_derived_vars () |
set_branch_and_derived_vars () |
33 |
{ |
{ |
42 |
# must be peer w/ startdir |
# must be peer w/ startdir |
43 |
distdir="../dist.$branch" |
distdir="../dist.$branch" |
44 |
|
|
|
# see $w/build/dist-files/HACKING |
|
|
tag=`echo $branch | sed s/^branch_release-/release_/g` |
|
|
|
|
45 |
} |
} |
46 |
|
|
47 |
check_unmodified_tag_and_autogen () |
check_unmodified_tag_and_autogen () |