VirtualBox

Changeset 30099 in vbox for trunk/src


Ignore:
Timestamp:
Jun 9, 2010 8:27:36 AM (15 years ago)
Author:
vboxsync
Message:

Solaris/Installer: do tar.gz creation from Makefile.

Location:
trunk/src/VBox/Installer/solaris
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/solaris/Makefile.kmk

    r29899 r30099  
    7373endif
    7474SOL_OBJCOPY                  := /usr/sfw/bin/gobjcopy --strip-unneeded -R .comment
     75SOL_GTAR                     := /usr/sfw/bin/gtar
    7576
    7677
     
    481482,$(SOLARIS_DBG_DIR)/$(d))
    482483
     484# List of files to be tar.gz'd, the files will be
     485# installed in $(SOLARIS_BASEINST_DIR) and .gz'd from there.
     486SOLARIS_TAR_GZ_FILES := \
     487        $(PKG_FILENAME).pkg \
     488        $(if $(VBOX_WITH_SOLARIS_VBI),$(VBIPKG_FILENAME).pkg,) \
     489        LICENSE \
     490        autoresponse \
     491        ReadMe.txt
    483492
    484493include $(KBUILD_PATH)/subfooter.kmk
     
    622631                $(VBOX_SVN_REV) \
    623632                $(if $(VBOX_WITH_SOLARIS_VBI),$(VBIPKG_FILENAME).pkg,)
     633        $(call MSG_L1,Creating final tar.gz package)
     634        $(QUIET)$(SOL_GTAR) -C $(SOLARIS_BASEINST_DIR) -zcvf $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).tar.gz $(SOLARIS_TAR_GZ_FILES)
    624635        $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).tar.gz $(SOLARIS_OUT_BIN)
    625636        @# Clean up files emitted as side-effect or result of packing
     
    627638        $(QUIET)$(RM) -f $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).pkg
    628639        $(QUIET)$(if $(VBOX_WITH_SOLARIS_VBI),$(RM) -f $(SOLARIS_BASEINST_DIR)/$(VBIPKG_FILENAME).pkg,)
     640        $(call MSG_L1,Packaging completed.)
    629641
    630642
  • trunk/src/VBox/Installer/solaris/makepackage.sh

    r29919 r30099  
    5454VBOX_GGREP=/usr/sfw/bin/ggrep
    5555VBOX_AWK=/usr/bin/awk
    56 VBOX_GTAR=/usr/sfw/bin/gtar
     56#VBOX_GTAR=/usr/sfw/bin/gtar
    5757
    5858# check for GNU grep we use which might not ship with all Solaris
     
    6363
    6464# check for GNU tar we use which might not ship with all Solaris
    65 if test ! -f "$VBOX_GTAR" && test ! -h "$VBOX_GTAR"; then
    66     echo "## GNU tar not found in $VBOX_GTAR."
    67     exit 1
    68 fi
     65#if test ! -f "$VBOX_GTAR" && test ! -h "$VBOX_GTAR"; then
     66#    echo "## GNU tar not found in $VBOX_GTAR."
     67#    exit 1
     68#fi
    6969
    7070# bail out on non-zero exit status
     
    211211
    212212# $5 if exist would contain the path to the VBI package to include in the .tar.gz
    213 if [ -f LICENSE ]; then
    214     VBOX_LICENSEFILE=LICENSE
    215 fi
    216 if test -f "$5"; then
    217     $VBOX_GTAR zcvf "$VBOX_ARCHIVE" $VBOX_LICENSEFILE "$VBOX_PKGFILE" "$5" autoresponse ReadMe.txt
    218 else
    219     $VBOX_GTAR zcvf "$VBOX_ARCHIVE" $VBOX_LICENSEFILE "$VBOX_PKGFILE" autoresponse ReadMe.txt
    220 fi
    221 
    222 echo "## Packaging and transfer completed successfully!"
     213#if [ -f LICENSE ]; then
     214#    VBOX_LICENSEFILE=LICENSE
     215#fi
     216#if test -f "$5"; then
     217#    $VBOX_GTAR zcvf "$VBOX_ARCHIVE" $VBOX_LICENSEFILE "$VBOX_PKGFILE" "$5" autoresponse ReadMe.txt
     218#else
     219#    $VBOX_GTAR zcvf "$VBOX_ARCHIVE" $VBOX_LICENSEFILE "$VBOX_PKGFILE" autoresponse ReadMe.txt
     220#fi
     221
     222echo "## Package file created successfully!"
    223223rm -rf "/var/spool/pkg/$VBOX_PKGNAME"
    224224
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