/[linux-patches]/genpatches-2.6-misc/scripts/gpdorelease
Gentoo

Contents of /genpatches-2.6-misc/scripts/gpdorelease

Parent Directory Parent Directory | Revision Log Revision Log


Revision 68 - (show annotations) (download)
Tue Jun 28 18:51:15 2005 UTC (8 years, 9 months ago) by dsd
File size: 1603 byte(s)
Add automatic release announcement email stuff
1 #!/bin/bash
2
3 . ~/.genpatchesrc
4
5 BRANCH="2.6.$1"
6
7 EXISTING_TAGS="$(svn ls svn+ssh://${USERNAME}@svn.gentoo.org/var/svnroot/linux-patches/genpatches-2.6/tags)"
8
9 for i in $EXISTING_TAGS ; do
10 tag="${i%/}"
11 [[ ${tag/-*} == $BRANCH ]] && lastrelease="${tag}"
12 done
13
14 if [[ -z $lastrelease ]] ; then
15 newrel="1"
16 else
17 newrel="${lastrelease#${BRANCH}-}"
18 (( newrel++ ))
19 fi
20
21 newfullver="${BRANCH}-${newrel}"
22
23 echo "I will now:"
24 echo "1. Tag the ${BRANCH} branch as ${newfullver} (immediate commit)"
25 echo "2. Produce genpatches-${newfullver} tarballs"
26 echo "3. Upload tarballs to distfiles-local"
27 echo "4. (Optionally) create and upload website"
28 echo "5. (Optionally) send a release announcement to gentoo-kernel"
29 echo
30 echo "Make sure everything is already committed and ready to roll."
31 echo "Press enter to continue."
32
33 read
34
35 svn copy svn+ssh://dsd@svn.gentoo.org/var/svnroot/linux-patches/genpatches-2.6/trunk/${BRANCH} svn+ssh://dsd@svn.gentoo.org/var/svnroot/linux-patches/genpatches-2.6/tags/${newfullver} -m "${newfullver} release"
36
37 file_base="/tmp/genpatches-$newfullver.base.tar.bz2"
38 file_extras="/tmp/genpatches-$newfullver.extras.tar.bz2"
39 dir="${BRANCH}"
40 cd ${GENPATCHES_TRUNK}
41
42 [ -n "$(find ${dir}/[012]* 2>/dev/null)" ] && tar -cvjf ${file_base} ${dir}/[012]*
43 [ -n "$(find ${dir}/[34]* 2>/dev/null)" ] && tar -cvjf ${file_extras} ${dir}/[34]*
44
45 scp /tmp/genpatches-$newfullver.* ${USERNAME}@dev.gentoo.org:/space/distfiles-local
46
47 if [[ ${DO_WEBSITE} == "yes" ]] ; then
48 mv ${file_base} ${file_extras} ${WEB_LOCAL}/tarballs/
49 gpdoweb
50 fi
51
52 [[ ${DO_EMAIL_ANNOUNCEMENT} == "yes" ]] && gpdoemail $newfullver

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.20