VirtualBox

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

Last change on this file since 67129 was 67129, checked in by vboxsync, 8 years ago

Makefile.kmk: moved 'snapshot-ose' target to a separate script

  • Property svn:eol-style set to LF
  • Property svn:executable set to *
File size: 1.4 KB
Line 
1#!/bin/sh
2# Use this script in conjunction with snapshot-ose.sh
3
4vboxdir=`pwd`
5if [ ! -r "$vboxdir/Config.kmk" -o ! -r "$vboxdir/Doxyfile.Core" ]; then
6 echo "Is $vboxdir really a VBox tree?"
7 exit 1
8fi
9if [ -r "$vboxdir/src/VBox/RDP/server/server.cpp" ]; then
10 echo "Found RDP stuff, refused to build OSE tarball!"
11 exit 1
12fi
13vermajor=`grep "^VBOX_VERSION_MAJOR *=" "$vboxdir/Config.kmk"|sed -e "s|.*= *\(.*\)|\1|g"`
14verminor=`grep "^VBOX_VERSION_MINOR *=" "$vboxdir/Config.kmk"|sed -e "s|.*= *\(.*\)|\1|g"`
15verbuild=`grep "^VBOX_VERSION_BUILD *=" "$vboxdir/Config.kmk"|sed -e "s|.*= *\(.*\)|\1|g"`
16rootpath=`cd ..;pwd`
17verstr="$vermajor.$verminor.$verbuild"
18rootname="VirtualBox-$verstr"
19rm -f "$rootpath/$rootname"
20ln -s `basename "$vboxdir"` "$rootpath/$rootname"
21if [ $? -ne 0 ]; then
22 echo "Cannot create root directory link!"
23 exit 1
24fi
25tar \
26 --create \
27 --bzip2 \
28 --dereference \
29 --owner 0 \
30 --group 0 \
31 --totals \
32 --exclude=.svn \
33 --exclude="$rootname/out" \
34 --exclude="$rootname/env.sh" \
35 --exclude="$rootname/configure.log" \
36 --exclude="$rootname/build.log" \
37 --exclude="$rootname/AutoConfig.kmk" \
38 --exclude="$rootname/LocalConfig.kmk" \
39 --exclude="$rootname/prebuild" \
40 --directory "$rootpath" \
41 --file "$rootpath/$rootname.tar.bz2" \
42 "$rootname"
43echo "Successfully created $rootpath/$rootname.tar.bz2"
44rm -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