-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelease_support
executable file
·102 lines (96 loc) · 2.74 KB
/
release_support
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#! /bin/sh -x
#
# This script supports the cut_release by performing module specific
# answers and answering module specific questions.
#
# Module: RTEMS
#
# $Id: release_support,v 1.7 2007/08/02 15:01:29 joel Exp $
#
usage()
{
echo $*
exit 1
}
if test $# -lt 1 ; then
usage "not enough arguments."
fi
user_name=`grep ^$LOGNAME /etc/passwd | cut -d':' -f5 | cut -d',' -f1`
# If you don't have user information, then we won't commit anything.
if test "X${user_name}" = "X" ; then
echo "User information not set"
usage
fi
case $1 in
name)
echo "RTEMS"
;;
pretag)
release_name=$2
current=$3
currentdir=`pwd`
for version_dir in . cpukit c/src testsuites
do
cd ${currentdir}/${version_dir}
cat << EOF > aclocal/version.m4
AC_DEFUN([RTEMS_VERSIONING],
m4_define([_RTEMS_VERSION],[${current}]))
EOF
( \
echo `date +"%Y-%m-%d"`" ${user_name}" ;
echo ;
echo " * aclocal/version.m4: Updated to ${release_name}-${current}." ;
echo \
) >YYY
cat YYY ChangeLog >XXX
mv XXX ChangeLog
cvs commit -F YYY ChangeLog aclocal/version.m4
rm -f YYY
done
cd ${currentdir}
;;
postexport)
# In order to prevent end users from having to have "developer" tools
# like automake and autoconf, we need to ensure that the following
# timestamp relationships hold:
#
# + configure is newer than configure.in
# + aclocal.m4 is newer than the aclocal macros it uses
# + Makefile.in is newer than Makefile.am
#
# This regenerates all automatically generated files and ensures that
# timestamp relationships are correct.
#
# NOTE: The standard way of doing this is to have a script named
# bootstrap at the top level.
#
./bootstrap
# now make sure the files generated by rpcgen are OK.
# NOTE: With rdbg removed, there are no files to touch until
# the NFS client build process is worked out.
# now remove left overs from auto* -- they take 2MB even with bzip
find . -name autom4te.cache -print | xargs -e rm -rf
find . -name .cvsignore -print | xargs -e rm -rf
;;
after_tar)
current=$2
reldir_curr=$3
module_name=rtems
( echo
echo "This file contains configuration information on the "
echo "primary computer used to test and make the ${current}"
echo "version of ${module_name}."
echo
echo "OS Version: " `head -1 /etc/issue`
echo
echo "The following RTEMS RPMs were installed on the machine"
echo "where this release was made:"
rpm -q -g RTEMS/4.7 | sed -e 's/^/ /'
echo
) >${reldir_curr}/TOOL_VERSIONS
;;
*)
usage "$1 is not a valid subcommand."
;;
esac
exit 0