VirtualBox

Changeset 19162 in vbox for trunk


Ignore:
Timestamp:
Apr 24, 2009 10:42:36 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
46443
Message:

kmk snapshot updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile.kmk

    r19158 r19162  
    700700#
    701701# 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
    703702# - includes kBuild
    704703# - must be executed on an OSE checkout
     
    711710# the name of the tarball file
    712711TARBALLNAME ?= VirtualBox-$(VBOX_VERSION_STRING).tar.bz2
    713 snapshot-ose snapshot-puel:
     712snapshot-ose:
    714713        @$(call MSG_L1,Creating tarball $(TARBALLPATH)/$(TARBALLNAME))
    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
     714        @if [ -d "$(PATH_ROOT)/src/VBox/Devices/USB" ]; then \
     715            echo; \
     716            echo "Found USB stuff, refused to build OSE tarball!"; \
     717            echo; \
     718            exit 1; \
     719        fi; \
     720        if [ -z "$(VBOX_OSE)" ]; then \
     721            echo; \
     722            echo "Please do 'kmk snapshot-ose VBOX_OSE=1'"; \
     723            echo; \
     724            exit 1; \
     725        fi; \
    736726        $(QUIET)$(MKDIR) -p $(TARBALLPATH)
    737727        $(QUIET)$(RM) -f $(TARBALLPATH)/$(TARBALLROOT)
     
    745735            --exclude=$(TARBALLROOT)/AutoConfig.kmk \
    746736            --exclude=$(TARBALLROOT)/LocalConfig.kmk \
    747             --exclude=$(TARBALLROOT)/doc/Devices \
    748             --exclude=$(TARBALLROOT)/doc/\*pdf \
    749             --exclude=$(TARBALLROOT)/doc/L4VM \
    750             --exclude=$(TARBALLROOT)/doc/VMM \
    751             --exclude=$(TARBALLROOT)/doc/licenses_old \
    752             --exclude=$(TARBALLROOT)/doc/manual/de_DE \
    753             --exclude=$(TARBALLROOT)/doc/manual/fr_FR \
    754             --exclude=$(TARBALLROOT)/ChangeLog\* \
    755             $(if $(VBOX_OSE),,--exclude=$(TARBALLROOT)/COPYING) \
    756             --exclude=$(TARBALLROOT)/webtools \
    757737            --exclude=$(TARBALLROOT)/prebuild \
    758             --exclude=$(TARBALLROOT)/src/tests \
    759             --exclude=$(TARBALLROOT)/src/VBox/Artwork \
    760             --exclude=$(TARBALLROOT)/src/VBox/Installer/AMI \
    761             --exclude=$(TARBALLROOT)/src/VBox/Installer/Avanquest \
    762             --exclude=$(TARBALLROOT)/src/VBox/Installer/Encore \
    763             --exclude=$(TARBALLROOT)/src/VBox/Installer/linux/debian \
    764             --exclude=$(TARBALLROOT)/src/VBox/Installer/linux/rpm \
    765             $(if $(VBOX_OSE),,--exclude=$(TARBALLROOT)/tools) \
    766738            -C $(TARBALLPATH) \
    767739            -f $(TARBALLPATH)/$(TARBALLNAME) \
    768740            $(TARBALLROOT)
    769741        $(QUIET)$(RM) $(TARBALLPATH)/$(TARBALLROOT)
     742
     743
     744#
     745# Generate VirtualBox-x.x.x.tar.bz2 (PUEL) zip archives for internal use only
     746# - includes kBuild
     747# - must be executed on an OSE checkout
     748#
     749
     750# the path where to store the zip archive
     751ZIPPATH ?= $(abspath $(PATH_ROOT)/..)
     752# the root directory inside the zip archive
     753ZIPROOT ?= VirtualBox-$(VBOX_VERSION_STRING)
     754# the name of the zip archive
     755ZIPNAME ?= VirtualBox-$(VBOX_VERSION_STRING).zip
     756snapshot-puel:
     757        @$(call MSG_L1,Creating zip $(ZIPPATH)/$(ZIPNAME))
     758        @if [ ! -d "$(PATH_ROOT)/src/VBox/Devices/USB" ]; then \
     759            echo; \
     760            echo "Did not find USB stuff, is this an OSE branch?"; \
     761            echo; \
     762            exit 1; \
     763         fi
     764        @if [ -z "$(PASSWORD) ]; then \
     765            echo; \
     766            echo "Please specify a password with PASSWORD=..."; \
     767            echo; \
     768            exit 1; \
     769         fi
     770        $(QUIET)$(MKDIR) -p $(ZIPPATH)
     771        $(QUIET)$(RM) -f $(ZIPPATH)/$(ZIPROOT)
     772        $(QUIET)$(LN_SYMLINK) $(PATH_ROOT) $(ZIPPATH)/$(ZIPROOT)
     773        $(QUIET)(cd $(ZIPPATH); 7z a \
     774            -l -tzip -mmt=on -mx=7 -p$(PASSWORD) \
     775            -xr!.svn \
     776            -x!$(ZIPROOT)/out \
     777            -x!$(ZIPROOT)/env.sh \
     778            -x!$(ZIPROOT)/configure.log \
     779            -x!$(ZIPROOT)/build.log \
     780            -x!$(ZIPROOT)/AutoConfig.kmk \
     781            -x!$(ZIPROOT)/LocalConfig.kmk \
     782            -x!$(ZIPROOT)/doc/Devices \
     783            -x!$(ZIPROOT)/doc/\*pdf \
     784            -x!$(ZIPROOT)/doc/L4VM \
     785            -x!$(ZIPROOT)/doc/VMM \
     786            -x!$(ZIPROOT)/doc/licenses_old \
     787            -x!$(ZIPROOT)/doc/manual/de_DE \
     788            -x!$(ZIPROOT)/doc/manual/fr_FR \
     789            -x!$(ZIPROOT)/ChangeLog\* \
     790            -x!$(ZIPROOT)/COPYING \
     791            -x!$(ZIPROOT)/webtools \
     792            -x!$(ZIPROOT)/prebuild \
     793            -x!$(ZIPROOT)/src/tests \
     794            -x!$(ZIPROOT)/src/VBox/Artwork \
     795            -x!$(ZIPROOT)/src/VBox/Installer/AMI \
     796            -x!$(ZIPROOT)/src/VBox/Installer/Avanquest \
     797            -x!$(ZIPROOT)/src/VBox/Installer/Encore \
     798            -x!$(ZIPROOT)/src/VBox/Installer/linux/debian \
     799            -x!$(ZIPROOT)/src/VBox/Installer/linux/rpm \
     800            -x!$(ZIPROOT)/tools \
     801            -pfoo \
     802            $(ZIPPATH)/$(ZIPNAME) \
     803            $(ZIPROOT))
     804        $(QUIET)$(RM) $(ZIPPATH)/$(ZIPROOT)
    770805
    771806
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