diff options
author | Heinz Wiesinger <pprkut@liwjatan.at> | 2010-05-13 00:42:18 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 00:42:18 +0200 |
commit | eea5b77a6acccb41ff1f24f0a6c61ce760f5e5bb (patch) | |
tree | 75adfb237e44a07c78b930f47e4115129fde984c /system/virtualbox-kernel/virtualbox-kernel-mksrctarball.sh | |
parent | c79e0b03e6ca32ec7fefab7a37a7fee37dfe20f4 (diff) |
system/virtualbox-kernel: Updated for version 3.1.2
Diffstat (limited to 'system/virtualbox-kernel/virtualbox-kernel-mksrctarball.sh')
-rw-r--r-- | system/virtualbox-kernel/virtualbox-kernel-mksrctarball.sh | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/system/virtualbox-kernel/virtualbox-kernel-mksrctarball.sh b/system/virtualbox-kernel/virtualbox-kernel-mksrctarball.sh index 78e0994e65d7..b758bc049b88 100644 --- a/system/virtualbox-kernel/virtualbox-kernel-mksrctarball.sh +++ b/system/virtualbox-kernel/virtualbox-kernel-mksrctarball.sh @@ -9,18 +9,17 @@ set -e PRGNAM=virtualbox-kernel -VBOX_VERSION=$(VBoxManage -v | grep -e ^[0-9].*_OSE) -VERSION=${VBOX_VERSION:0:5} +VERSION=$(VBoxManage -v | grep -e ^[0-9].*_OSE | cut -d "_" -f 1) MODULE_SRC=$(grep "MODULE_SRC=" /etc/vbox/vbox.cfg | cut -d "=" -f 2 | cut -d "\"" -f 2) -echo "--> Copying sourcecode from $INSTALL_DIR/src" +echo "--> Copying sourcecode from $MODULE_SRC/$PRGNAM-$VERSION" cp -rf $MODULE_SRC/$PRGNAM-$VERSION $PRGNAM-$VERSION -echo "--> Making the sourcecode tarball: $PRGNAM-$VERSION.tar.bz2 " -tar -c $PRGNAM-$VERSION/ | bzip2 > $PRGNAM-$VERSION.tar.bz2 +echo "--> Making the sourcecode tarball: ./$PRGNAM-$VERSION.tar.xz" +tar -cJf $PRGNAM-$VERSION.tar.xz $PRGNAM-$VERSION -echo "--> Erasing the sourcecode directory: $SRCNAM/" +echo "--> Erasing the sourcecode directory: ./$PRGNAM-$VERSION/" rm -rf $PRGNAM-$VERSION/ -echo "--> Sourcecode tarball for $PRGNAM: $PRGNAM-$VERSION.tar.bz2" +echo "--> Sourcecode tarball for $PRGNAM: $(pwd)/$PRGNAM-$VERSION.tar.xz" |