source: rtems/release_support @ 5f5f681

4.104.11
Last change on this file since 5f5f681 was 27ccd807, checked in by Joel Sherrill <joel.sherrill@…>, on Aug 2, 2007 at 3:01:29 PM

2007-08-02 Joel Sherrill <joel.sherrill@…>

  • Makefile.maint, configure.ac, release_support: Remove RDBG.
  • aclocal/enable-rdbg.m4: Removed.
  • Property mode set to 100755
File size: 2.7 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
21user_name=`grep ^$LOGNAME /etc/passwd | cut -d':' -f5 | cut -d',' -f1`
22# If you don't have user information, then we won't commit anything.
23if test "X${user_name}" = "X" ; then
24  echo "User information not set"
25  usage
26fi
27case $1 in
28  name)
29    echo "RTEMS"
30    ;;
31  pretag)
32    release_name=$2
33    current=$3
34    currentdir=`pwd`
35    for version_dir in . cpukit c/src testsuites
36    do
37      cd ${currentdir}/${version_dir}
38      cat << EOF > aclocal/version.m4
39AC_DEFUN([RTEMS_VERSIONING],
40m4_define([_RTEMS_VERSION],[${current}]))
41EOF
42      ( \
43       echo `date +"%Y-%m-%d"`"  ${user_name}" ;
44       echo ;
45       echo "   * aclocal/version.m4: Updated to ${release_name}-${current}." ;
46       echo \
47      ) >YYY
48      cat YYY ChangeLog >XXX
49      mv XXX ChangeLog
50      cvs commit -F YYY ChangeLog aclocal/version.m4
51      rm -f YYY
52    done
53    cd ${currentdir}
54    ;;
55  postexport)
56    # In order to prevent end users from having to have "developer" tools
57    # like automake and autoconf, we need to ensure that the following
58    # timestamp relationships hold:
59    #
60    #  + configure is newer than configure.in
61    #  + aclocal.m4 is newer than the aclocal macros it uses
62    #  + Makefile.in is newer than Makefile.am
63    #
64    # This regenerates all automatically generated files and ensures that
65    # timestamp relationships are correct.
66    #
67    # NOTE: The standard way of doing this is to have a script named
68    #       bootstrap at the top level.
69    #
70    ./bootstrap
71
72    # now make sure the files generated by rpcgen are OK.
73    # NOTE: With rdbg removed, there are no files to touch until
74    #       the NFS client build process is worked out.
75
76    # now remove left overs from auto* -- they take 2MB even with bzip
77    find . -name autom4te.cache -print | xargs -e rm -rf
78    find . -name .cvsignore -print | xargs -e rm -rf
79    ;;
80  after_tar)
81    current=$2
82    reldir_curr=$3
83    module_name=rtems
84      ( echo
85        echo "This file contains configuration information on the "
86        echo "primary computer used to test and make the ${current}"
87        echo "version of ${module_name}."
88        echo
89        echo "OS Version: " `head -1 /etc/issue`
90        echo
91        echo "The following RTEMS RPMs were installed on the machine"
92        echo "where this release was made:"
93        rpm -q -g RTEMS/4.7 | sed -e 's/^/    /'
94        echo
95      ) >${reldir_curr}/TOOL_VERSIONS
96    ;;
97  *)
98    usage "$1 is not a valid subcommand."
99    ;;
100esac
101
102exit 0
Note: See TracBrowser for help on using the repository browser.