source: rtems/release_support @ c880dc8

4.104.114.84.95
Last change on this file since c880dc8 was 69544b5, checked in by Joel Sherrill <joel.sherrill@…>, on 12/17/03 at 20:54:51

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

  • release_support: Correct method used to find ChangeLog? associated with the version.m4 files. Keep going until I can get a tarball cut.
  • Property mode set to 100755
File size: 2.3 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    currentdir=`pwd`
29    for version_dir in . cpukit c/src testsuites
30    do
31      cd ${currentdir}/${version_dir}
32      cat << EOF > aclocal/version.m4
33AC_DEFUN([RTEMS_VERSIONING],
34m4_define([_RTEMS_VERSION],[${current}]))
35EOF
36      ( \
37       echo `date +"%Y-%m-%d"`"  ${user_name}" ;
38       echo ;
39       echo "    * aclocal/version.m4: Updated to ${release_name}-${current}." ;
40       echo \
41      ) >YYY
42      cat YYY ChangeLog >XXX
43      mv XXX ChangeLog
44      cvs commit -F YYY ChangeLog aclocal/version.m4
45      rm -f YYY
46    done
47    cd ${currentdir}
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.