VirtualBox

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

最後變更 在這個檔案從69467是 69365,由 vboxsync 提交於 7 年 前

tools/bin/ose-tarball.sh: adjust for Version.kmk.
bugref:9009: Release process: improvements

ose-tarball.sh also depended on the version information in Config.kmk. Fix
that.

  • 屬性 svn:eol-style 設為 LF
  • 屬性 svn:executable 設為 *
檔案大小: 1.4 KB
 
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/Version.kmk"|sed -e "s|.*= *\(.*\)|\1|g"`
14verminor=`grep "^VBOX_VERSION_MINOR *=" "$vboxdir/Version.kmk"|sed -e "s|.*= *\(.*\)|\1|g"`
15verbuild=`grep "^VBOX_VERSION_BUILD *=" "$vboxdir/Version.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"
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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