source: rtems/release_support @ c6eba79

4.104.114.84.95
Last change on this file since c6eba79 was 0bcbbd2, checked in by Joel Sherrill <joel.sherrill@…>, on 04/19/06 at 02:53:04

2006-04-18 Joel Sherrill <joel@…>

  • release_support: Fix typos.
  • Property mode set to 100755
File size: 2.6 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    # now make sure the files generated by rpcgen are OK.
72    touch c/src/librdbg/src/*/*/remdeb*.[hc]
73    # now remove left overs from auto* -- they take 2MB even with bzip
74    find . -name autom4te.cache -print | xargs -e rm -rf
75    find . -name .cvsignore -print | xargs -e rm -rf
76    ;;
77  after_tar)
78    current=$2
79    reldir_curr=$3
80    module_name=rtems
81      ( echo
82        echo "This file contains configuration information on the "
83        echo "primary computer used to test and make the ${current}"
84        echo "version of ${module_name}."
85        echo
86        echo "OS Version: " `head -1 /etc/issue`
87        echo
88        echo "The following RTEMS RPMs were installed on the machine"
89        echo "where this release was made:"
90        rpm -q -g RTEMS/4.7 | sed -e 's/^/    /'
91        echo
92      ) >${reldir_curr}/TOOL_VERSIONS
93    ;;
94  *)
95    usage "$1 is not a valid subcommand."
96    ;;
97esac
98
99exit 0
Note: See TracBrowser for help on using the repository browser.