1 | #! /bin/sh -x |
---|
2 | # |
---|
3 | # This script supports the cut_release by performing module specific |
---|
4 | # answers and answering module specific questions. |
---|
5 | # |
---|
6 | # Module: RTEMS |
---|
7 | # |
---|
8 | # $Id$ |
---|
9 | # |
---|
10 | |
---|
11 | usage() |
---|
12 | { |
---|
13 | echo $* |
---|
14 | exit 1 |
---|
15 | } |
---|
16 | |
---|
17 | if test $# -lt 1 ; then |
---|
18 | usage "not enough arguments." |
---|
19 | fi |
---|
20 | |
---|
21 | case $1 in |
---|
22 | name) |
---|
23 | echo "RTEMS" |
---|
24 | ;; |
---|
25 | pretag) |
---|
26 | release_name=$2 |
---|
27 | current=$3 |
---|
28 | for version_file in \ |
---|
29 | aclocal/version.m4 \ |
---|
30 | cpukit/aclocal/version.m4 \ |
---|
31 | c/src/aclocal/version.m4 \ |
---|
32 | cpukit/aclocal/version.m4 |
---|
33 | do |
---|
34 | b=`dirname $version_file`/.. |
---|
35 | cat << EOF > $version_file |
---|
36 | AC_DEFUN([RTEMS_VERSIONING], |
---|
37 | m4_define([_RTEMS_VERSION],[${current}])) |
---|
38 | EOF |
---|
39 | ( echo `date +"%Y-%m-%d"`" ${user_name}" ; |
---|
40 | echo ; |
---|
41 | echo " * ${version_file}: Updated to ${release_name}-${current}." ; |
---|
42 | echo ) >YYY |
---|
43 | cat YYY ${b}/ChangeLog >XXX |
---|
44 | mv XXX ${b}/ChangeLog |
---|
45 | cvs commit -F YYY ${b}/ChangeLog ${version_file} |
---|
46 | rm -f YYY |
---|
47 | done |
---|
48 | ;; |
---|
49 | postexport) |
---|
50 | # In order to prevent end users from having to have "developer" tools |
---|
51 | # like automake and autoconf, we need to ensure that the following |
---|
52 | # timestamp relationships hold: |
---|
53 | # |
---|
54 | # + configure is newer than configure.in |
---|
55 | # + aclocal.m4 is newer than the aclocal macros it uses |
---|
56 | # + Makefile.in is newer than Makefile.am |
---|
57 | # |
---|
58 | # This regenerates all automatically generated files and ensures that |
---|
59 | # timestamp relationships are correct. |
---|
60 | # |
---|
61 | # NOTE: The standard way of doing this is to have a script named |
---|
62 | # bootstrap at the top level. |
---|
63 | # |
---|
64 | ./bootstrap |
---|
65 | # now make sure the files generated by rpcgen are OK. |
---|
66 | touch c/src/librdbg/src/*/*/remdeb*.[hc] |
---|
67 | # now remove left overs from auto* -- they take 2MB even with bzip |
---|
68 | find . -name autom4te.cache -print | xargs -e rm -rf |
---|
69 | ;; |
---|
70 | aftertar) |
---|
71 | current=$2 |
---|
72 | reldir_curr=$3 |
---|
73 | module_name=rtems |
---|
74 | ( echo |
---|
75 | echo "This file contains configuration information on the " |
---|
76 | echo "primary computer used to test and make the ${current}" |
---|
77 | echo "version of ${module_name}." |
---|
78 | echo |
---|
79 | echo "OS Version: " `head -1 /etc/issue` |
---|
80 | echo |
---|
81 | echo "The following RTEMS RPMs were installed on the machine" |
---|
82 | echo "where this release was made:" |
---|
83 | rpm -q -g RTEMS/4.7 | sed -e 's/^/ /' |
---|
84 | echo |
---|
85 | ) >${reldir_curr}/TOOL_VERSIONS |
---|
86 | ;; |
---|
87 | *) |
---|
88 | usage "$1 is not a valid subcommand." |
---|
89 | ;; |
---|
90 | esac |
---|
91 | |
---|
92 | exit 0 |
---|