From fe288cced2b76e4381405ab9fef2cbcd14049325 Mon Sep 17 00:00:00 2001 From: fuzzyray Date: Tue, 5 May 2009 17:53:13 +0000 Subject: [PATCH] Move release.sh to gentoolkit-dev, since gentoolkit is migrating to python setup tools svn path=/; revision=592 --- trunk/release.sh | 89 ------------------------------------------------ 1 file changed, 89 deletions(-) delete mode 100755 trunk/release.sh diff --git a/trunk/release.sh b/trunk/release.sh deleted file mode 100755 index 22313b4..0000000 --- a/trunk/release.sh +++ /dev/null @@ -1,89 +0,0 @@ -#! /bin/bash - -case $(whoami) in - karltk) - publish_path=dev.gentoo.org:public_html/projects/gentoolkit/releases - publish_public_path="http://dev.gentoo.org/~karltk/projects/gentoolkit/releases" - portdir=/home/karltk/source/oss/gentoo/gentoo-x86/ - export ECHANGELOG_USER="Karl Trygve Kalleberg " - ;; - - port001) - publish_path=dev.gentoo.org:public_html/distfiles/gentoolkit/releases - publish_public_path="http://dev.gentoo.org/~port001/distfiles/gentoolkit/releases" - portdir=/home/port001/Gentoo/gentoo-x86/ - export ECHANGELOG_USER="Ian Leitch " - ;; - - genone) - publish_path=dev:public_html/distfiles/ - publish_public_path="http://dev.gentoo.org/~genone/distfiles/" - portdir=/home/gentoo/cvs/gentoo-x86/ - export ECHANGELOG_USER="Marius Mauch " - ;; - - agriffis) - publish_path=gentoo:public_html/dist/ - publish_public_path="http://dev.gentoo.org/~agriffis/dist/" - portdir=/home/agriffis/portage/ - ;; - - *) - echo "!!! Don't know who $(whoami) is, can't release" - exit 1 - ;; -esac - -function most-recent-ebuild() { - # FIXME: actually pick the most recent one - ls gentoolkit-dev-*.ebuild | tail -n 1 -} - -function release-dev() { - - echo "* Building .tar.bz" - make VERSION=${VERSION} RELEASE_TAG=${RELEASE_TAG} dist-gentoolkit-dev > /dev/null || exit - - echo "* Uploading .tar.bz" - scp release/gentoolkit-dev-${VERSION}${RELEASE_TAG}.tar.gz ${publish_path} || exit - - - echo "* Generating new ebuild" - - local ebuild="gentoolkit-dev-${VERSION}${RELEASE_TAG}.ebuild" - - cd ${portdir}/app-portage/gentoolkit-dev || exit - cp $(most-recent-ebuild) ${ebuild} - ekeyword ~all ${ebuild} - sed -i -e "s|SRC_URI=.*|SRC_URI=\"${publish_public_path}/\$\{\P\}.tar.gz\"|" ${ebuild} - - echo "* Generating digest" - ebuild ${ebuild} digest || exit - cvs add ${ebuild} || exit - echangelog "New upstream release" - echo '* Everything ready. You should:' - echo ' 1) ACCEPT_KEYWORDS="~x86" sudo emerge =gentoolkit-dev-${VERSION}${RELEASE_TAG}' - echo ' 2) repoman ci -m "New upstream release" from `pwd`' -} - - -if [ -z "${VERSION}" ] ; then - echo "!!! You must set the VERSION env var" - exit 1 -fi - -if [ -z "${RELEASE_TAG}" ] ; then - echo "No RELEASE_TAG found, presumably okay" -fi - - -if [ "$1" == "dev" ] ; then - release-dev -elif [ "$1" == "main" ] ; then - echo "!!! Unsupported atm, feel free to add code;)" - exit 1 -else - echo "!!! You must select to release either 'dev' or 'main', as parameter to release.sh" - exit 1 -fi - -- 2.26.2