diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2013-09-11 07:07:19 +0000 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2013-09-11 07:07:19 +0000 |
commit | d474ea33e203ce308ff37110a818b298a70b123f (patch) | |
tree | 649a41275bc23de80d9ec831e211fa5c05880733 /app-emulation/virtualbox-modules/files | |
parent | API=5. Remove useless virtual/ruby-test-unit dependency. Run as much of the t... (diff) | |
download | historical-d474ea33e203ce308ff37110a818b298a70b123f.tar.gz historical-d474ea33e203ce308ff37110a818b298a70b123f.tar.bz2 historical-d474ea33e203ce308ff37110a818b298a70b123f.zip |
Updated tarball creation script to handle _beta and _rc versions properly
Package-Manager: portage-2.2.2/cvs/Linux x86_64
Manifest-Sign-Key: 0x981CA6FC
Diffstat (limited to 'app-emulation/virtualbox-modules/files')
-rwxr-xr-x | app-emulation/virtualbox-modules/files/create_vbox_modules_tarball.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/app-emulation/virtualbox-modules/files/create_vbox_modules_tarball.sh b/app-emulation/virtualbox-modules/files/create_vbox_modules_tarball.sh index 9bbc920616c0..756d243542bc 100755 --- a/app-emulation/virtualbox-modules/files/create_vbox_modules_tarball.sh +++ b/app-emulation/virtualbox-modules/files/create_vbox_modules_tarball.sh @@ -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 |