VirtualBox

source: vbox/trunk/tools/bin/ose-tarball.sh@ 72214

Last change on this file since 72214 was 69490, checked in by vboxsync, 7 years ago

tools/bin: scm updates

  • Property svn:eol-style set to LF
  • Property svn:executable set to *
File size: 1.9 KB
Line 
1#!/bin/sh
2# $Id$
3## @file
4# Use this script in conjunction with snapshot-ose.sh
5#
6
7#
8# Copyright (C) 2006-2017 Oracle Corporation
9#
10# This file is part of VirtualBox Open Source Edition (OSE), as
11# available from http://www.virtualbox.org. This file is free software;
12# you can redistribute it and/or modify it under the terms of the GNU
13# General Public License (GPL) as published by the Free Software
14# Foundation, in version 2 as it comes in the "COPYING" file of the
15# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
16# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
17#
18
19vboxdir=`pwd`
20if [ ! -r "$vboxdir/Config.kmk" -o ! -r "$vboxdir/Doxyfile.Core" ]; then
21 echo "Is $vboxdir really a VBox tree?"
22 exit 1
23fi
24if [ -r "$vboxdir/src/VBox/RDP/server/server.cpp" ]; then
25 echo "Found RDP stuff, refused to build OSE tarball!"
26 exit 1
27fi
28vermajor=`grep "^VBOX_VERSION_MAJOR *=" "$vboxdir/Version.kmk"|sed -e "s|.*= *\(.*\)|\1|g"`
29verminor=`grep "^VBOX_VERSION_MINOR *=" "$vboxdir/Version.kmk"|sed -e "s|.*= *\(.*\)|\1|g"`
30verbuild=`grep "^VBOX_VERSION_BUILD *=" "$vboxdir/Version.kmk"|sed -e "s|.*= *\(.*\)|\1|g"`
31rootpath=`cd ..;pwd`
32verstr="$vermajor.$verminor.$verbuild"
33rootname="VirtualBox-$verstr"
34rm -f "$rootpath/$rootname"
35ln -s `basename "$vboxdir"` "$rootpath/$rootname"
36if [ $? -ne 0 ]; then
37 echo "Cannot create root directory link!"
38 exit 1
39fi
40tar \
41 --create \
42 --bzip2 \
43 --dereference \
44 --owner 0 \
45 --group 0 \
46 --totals \
47 --exclude=.svn \
48 --exclude="$rootname/out" \
49 --exclude="$rootname/env.sh" \
50 --exclude="$rootname/configure.log" \
51 --exclude="$rootname/build.log" \
52 --exclude="$rootname/AutoConfig.kmk" \
53 --exclude="$rootname/LocalConfig.kmk" \
54 --exclude="$rootname/prebuild" \
55 --directory "$rootpath" \
56 --file "$rootpath/$rootname.tar.bz2" \
57 "$rootname"
58echo "Successfully created $rootpath/$rootname.tar.bz2"
59rm -f "$rootpath/$rootname"
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette