]>
git.ipfire.org Git - thirdparty/squid.git/blob - mkrelease.sh
2 if [ $# -ne 1 -a $# -ne 2 ]; then
3 echo "Usage: $0 revision [destination]"
8 rev=`echo $1 | sed -e "s/^${package}-//"`
10 tag
=`echo ${name} | tr a-z.- A-Z__`
13 RELEASE_TIME
=`date +%s`
15 tmpdir
=${TMPDIR:-${PWD}}/${name}-mkrelease
17 CVSROOT
=${CVSROOT:-/server/cvs-server/squid}
20 rm -rf $name.
tar.gz
$tmpdir
21 trap "rm -rf $tmpdir" 0
23 cvs
-Q export -d $tmpdir -r $tag $module
24 if [ ! -f $tmpdir/configure
]; then
25 echo "ERROR! Tag $tag not found in $module"
29 eval `grep ^VERSION= configure | sed -e 's/-CVS$//'`
30 eval `grep ^PACKAGE= configure`
31 if [ ${name} != ${PACKAGE}-${VERSION} ]; then
32 echo "ERROR! The version numbers does not match!"
33 echo "${name} != ${PACKAGE}-${VERSION}"
36 RELEASE
=`echo $VERSION | cut -d. -f1,2 | cut -d- -f1`
37 ed
-s configure.
in <<EOS
38 g/${VERSION}-CVS/ s//${VERSION}/
42 g/${VERSION}-CVS/ s//${VERSION}/
45 ed
-s include
/version.h
<<EOS
46 g/squid_curtime/ s//${RELEASE_TIME}/
54 cp -p $tmpdir/${name}.
tar.gz
$dst
55 cp -p $tmpdir/${name}.
tar.bz2
$dst
56 cp -p $tmpdir/CONTRIBUTORS
$dst/CONTRIBUTORS.txt
57 cp -p $tmpdir/COPYING
$dst/COPYING.txt
58 cp -p $tmpdir/COPYRIGHT
$dst/COPYRIGHT.txt
59 cp -p $tmpdir/CREDITS
$dst/CREDITS.txt
60 cp -p $tmpdir/ChangeLog
$dst/ChangeLog.txt
61 if [ -f $tmpdir/doc
/release-notes
/release-
$RELEASE.html
]; then
62 cp -p $tmpdir/doc
/release-notes
/release-
$RELEASE.html
$dst/RELEASENOTES.html