source: rtems/release_support @ 7d4d954

4.104.114.84.95
Last change on this file since 7d4d954 was 7d4d954, checked in by Joel Sherrill <joel.sherrill@…>, on Dec 17, 2003 at 6:52:57 PM

2003-12-17 Joel Sherrill <joel@…>

  • release_support: Use dirname not basedir. Keep going until I can get a tarball cut.
  • Property mode set to 100755
File size: 2.4 KB
Line 
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
11usage()
12{
13  echo $*
14  exit 1
15}
16
17if test $# -lt 1 ; then
18  usage "not enough arguments."
19fi
20
21case $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
36AC_DEFUN([RTEMS_VERSIONING],
37m4_define([_RTEMS_VERSION],[${current}]))
38EOF
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    ;;
90esac
91
92exit 0
Note: See TracBrowser for help on using the repository browser.