From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id B7A6E1381F3 for ; Wed, 11 Sep 2013 07:07:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2452DE0BEE; Wed, 11 Sep 2013 07:07:20 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B7211E0BEE for ; Wed, 11 Sep 2013 07:07:19 +0000 (UTC) Received: from flycatcher.gentoo.org (flycatcher.gentoo.org [81.93.255.6]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CEB7733EB17 for ; Wed, 11 Sep 2013 07:07:18 +0000 (UTC) Received: by flycatcher.gentoo.org (Postfix, from userid 2245) id 707BD2004C; Wed, 11 Sep 2013 07:07:16 +0000 (UTC) From: "Lars Wendler (polynomial-c)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, polynomial-c@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in app-emulation/virtualbox-modules/files: create_vbox_modules_tarball.sh X-VCS-Repository: gentoo-x86 X-VCS-Files: create_vbox_modules_tarball.sh X-VCS-Directories: app-emulation/virtualbox-modules/files X-VCS-Committer: polynomial-c X-VCS-Committer-Name: Lars Wendler Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Message-Id: <20130911070716.707BD2004C@flycatcher.gentoo.org> Date: Wed, 11 Sep 2013 07:07:16 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 1f8c8159-bc00-439b-a739-218f73ef1f5c X-Archives-Hash: 425a7dc9ad8104d758175e65a48096b8 polynomial-c 13/09/11 07:07:16 Modified: create_vbox_modules_tarball.sh Log: Updated tarball creation script to handle _beta and _rc versions properly (Portage version: 2.2.2/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC) Revision Changes Path 1.2 app-emulation/virtualbox-modules/files/create_vbox_modules_tarball.sh file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/virtualbox-modules/files/create_vbox_modules_tarball.sh?rev=1.2&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/virtualbox-modules/files/create_vbox_modules_tarball.sh?rev=1.2&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/virtualbox-modules/files/create_vbox_modules_tarball.sh?r1=1.1&r2=1.2 Index: create_vbox_modules_tarball.sh =================================================================== RCS file: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-modules/files/create_vbox_modules_tarball.sh,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- create_vbox_modules_tarball.sh 22 Dec 2012 12:24:43 -0000 1.1 +++ create_vbox_modules_tarball.sh 11 Sep 2013 07:07:16 -0000 1.2 @@ -9,8 +9,15 @@ [ -f "$1" ] || exit 1 VBOX_PACKAGE="$1" +VERSION_SUFFIX="" + +if [[ ${VBOX_PACKAGE} = *_BETA* ]] || [[ ${VBOX_PACKAGE} = *_RC* ]] ; then + VERSION_SUFFIX="$(echo ${VBOX_PACKAGE} | sed 's@.*VirtualBox-[[:digit:]\.]\+\(_[[:alpha:]]\+[[:digit:]]\).*@\L\1@')" + +fi + +VBOX_VER="$(echo ${VBOX_PACKAGE} | sed 's@.*VirtualBox-\([[:digit:]\.]\+\).*@\1@')${VERSION_SUFFIX}" -VBOX_VER="$(echo ${VBOX_PACKAGE} | sed 's@.*VirtualBox-\([[:digit:]\.]\+\).*@\1@')" sh ${VBOX_PACKAGE} --noexec --keep --nox11 || exit 2 cd install || exit 3