gentoo: only coldplug services started by autoconfig if autoconfig is in the default...
[fbsplash.git] / release / roll-gentoo.sh
blob8298301f823ff4a56ca361e8d104c7c30b436353
1 #!/bin/bash
3 source /devel/common/functions.sh
4 . ver-gentoo
6 TESTING=no
7 t="${*}"
8 [[ -z "${t/*--testing*/}" && -n "$t" ]] && TESTING=yes
10 if [[ "$1" == "major" ]]; then
11 major=$(($major+1))
12 minor=0
13 sub=0
14 elif [[ "$1" == "minor" ]]; then
15 minor=$(($minor+1))
16 sub=0
17 else
18 sub=$(($sub+1))
21 cdir=`pwd`
23 cd ..
25 ver=${major}.${minor}.${sub}
27 ebegin Creating a tarball
28 git archive --prefix=splashutils-gentoo-${ver}/ HEAD:gentoo/ | bzip2 -f > "${cdir}/splashutils-gentoo-${ver}.tar.bz2"
29 eend $?
31 cd ${cdir}
33 if [[ "${TESTING}" == "no" ]]; then
34 ebegin Updating version data
35 echo "major=${major}" > ver-gentoo
36 echo "minor=${minor}" >> ver-gentoo
37 echo "sub=${sub}" >> ver-gentoo
38 eend $?
40 ebegin Copying the tarball to dev.gentoo.org
41 scp splashutils-gentoo-${ver}.tar.bz2 spock@dev.gentoo.org:/home/spock
42 eend $?
44 ebegin Copying the tarball to the SDS
45 cp splashutils-gentoo-${ver}.tar.bz2 ${SDS_ROOT}/htdocs/projects/fbsplash/archive
46 eend $?