VirtualBox

Changeset 19153 in vbox


Ignore:
Timestamp:
Apr 24, 2009 6:56:21 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
46407
Message:

kmk snapshot targets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile.kmk

    r19010 r19153  
    699699
    700700#
    701 # Generate VirtualBox-OSE-x.x.x.tar.bz2 tarballs for distribution
    702 #
     701# Generate VirtualBox-OSE-x.x.x.tar.bz2 (OSE) tarballs for distribution
     702# Generate VirtualBox-x.x.x.tar.bz2 (PUEL) for internal use only
    703703# - includes kBuild
    704704# - must be executed on an OSE checkout
     
    706706
    707707# the path where to store the tarball
    708 TARBALLPATH ?= $(shell cd $(PATH_ROOT)/..; pwd)
    709 #TARBALLPATH ?= $(abspath $(PATH_ROOT)/..) - this should also do the trick without spawning a shell.
     708TARBALLPATH ?= $(abspath $(PATH_ROOT)/..)
    710709# the root directory inside the tarball
    711710TARBALLROOT ?= VirtualBox-$(VBOX_VERSION_STRING)
    712711# the name of the tarball file
    713712TARBALLNAME ?= VirtualBox-$(VBOX_VERSION_STRING).tar.bz2
    714 snapshot:
     713snapshot-ose snapshot-puel:
    715714        @$(call MSG_L1,Creating tarball $(TARBALLPATH)/$(TARBALLNAME))
    716         @if [ -d "$(PATH_ROOT)/src/VBox/Devices/USB" ]; then echo; echo "Found USB stuff, refused to build OSE tarball!"; echo; exit 1; fi
     715        @if [ "$@" = "snapshot-ose" ]; then \
     716            if [ -d "$(PATH_ROOT)/src/VBox/Devices/USB" ]; then \
     717                echo; \
     718                echo "Found USB stuff, refused to build OSE tarball!"; \
     719                echo; \
     720                exit 1; \
     721            fi; \
     722            if [ -z "$(VBOX_OSE)" ]; then \
     723                echo; \
     724                echo "Please do 'kmk snapshot-ose VBOX_OSE=1'"; \
     725                echo; \
     726                exit 1; \
     727            fi; \
     728         else \
     729            if [ ! -d "$(PATH_ROOT)/src/VBox/Devices/USB" ]; then \
     730                echo; \
     731                echo "Did not find USB stuff, is this an OSE branch?"; \
     732                echo; \
     733                exit 1; \
     734            fi; \
     735         fi
    717736        $(QUIET)$(MKDIR) -p $(TARBALLPATH)
    718         $(QUIET)$(RM) -f $(wildcard $(TARBALLPATH)/VirtualBox*)
     737        $(QUIET)$(RM) -f $(TARBALLPATH)/$(TARBALLROOT)
    719738        $(QUIET)$(LN_SYMLINK) $(PATH_ROOT) $(TARBALLPATH)/$(TARBALLROOT)
    720739        $(QUIET)tar -cjh --owner 0 --group 0 --totals \
Note: See TracChangeset for help on using the changeset viewer.

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