/[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 26 - (show annotations) (download)
Sun Jun 12 14:16:46 2005 UTC (9 years, 2 months ago) by dsd
File size: 1308 byte(s)
script and doc updates
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
28 echo "Make sure everything is already committed and ready to roll."
29 echo "Press enter to continue."
30
31 read
32
33 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"
34
35 file_base="/tmp/genpatches-$newfullver.base.tar.bz2"
36 file_extras="/tmp/genpatches-$newfullver.extras.tar.bz2"
37 dir="${BRANCH}"
38 cd ${GENPATCHES_TRUNK}
39
40 [ -n "$(find ${dir}/[012]* 2>/dev/null)" ] && tar -cvjf ${file_base} ${dir}/[012]*
41 [ -n "$(find ${dir}/[34]* 2>/dev/null)" ] && tar -cvjf ${file_extras} ${dir}/[34]*
42
43 scp /tmp/genpatches-$newfullver.* ${USERNAME}@dev.gentoo.org:/space/distfiles-local

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.20