VirtualBox

Changeset 75097 in vbox for trunk/tools/bin


Ignore:
Timestamp:
Oct 26, 2018 2:31:26 PM (6 years ago)
Author:
vboxsync
Message:

tools/bin/ose-tarball.sh: take more information from Version.kmk and accept the output filename as an optional parameter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/bin/ose-tarball.sh

    r69490 r75097  
    2929verminor=`grep "^VBOX_VERSION_MINOR *=" "$vboxdir/Version.kmk"|sed -e "s|.*= *\(.*\)|\1|g"`
    3030verbuild=`grep "^VBOX_VERSION_BUILD *=" "$vboxdir/Version.kmk"|sed -e "s|.*= *\(.*\)|\1|g"`
     31verpre=`grep "^VBOX_VERSION_PRERELEASE *=" "$vboxdir/Version.kmk"|sed -e "s|.*= *\(.*\)|\1|g"`
     32verpub=`grep "^VBOX_BUILD_PUBLISHER *=" "$vboxdir/Version.kmk"|sed -e "s|.*= *\(.*\)|\1|g"`
     33verstr="$vermajor.$verminor.$verbuild"
     34[ -n "$verpre" ] && verstr="$verstr"_"$verpre"
     35[ -n "$verpub" ] && verstr="$verstr$verpub"
    3136rootpath=`cd ..;pwd`
    32 verstr="$vermajor.$verminor.$verbuild"
    3337rootname="VirtualBox-$verstr"
     38if [ $# -eq 1]; then
     39    tarballname="$1"
     40else
     41    tarballname="$rootpath/$rootname.tar.bz2"
     42fi
    3443rm -f "$rootpath/$rootname"
    3544ln -s `basename "$vboxdir"` "$rootpath/$rootname"
     
    5463  --exclude="$rootname/prebuild" \
    5564  --directory "$rootpath" \
    56   --file "$rootpath/$rootname.tar.bz2" \
     65  --file "$tarballname" \
    5766  "$rootname"
    58 echo "Successfully created $rootpath/$rootname.tar.bz2"
     67echo "Successfully created $tarballname"
    5968rm -f "$rootpath/$rootname"
Note: See TracChangeset for help on using the changeset viewer.

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