Changeset 14126 in hybrid for branches/releng-11


Ignore:
Timestamp:
Apr 11, 2018, 6:07:52 PM (7 years ago)
Author:
rick
Message:

Add rebuilding of updated packages as option

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/releng-11/nanobsd/tools/package-build.sh

    r14124 r14126  
    1515. $cfg_dir/nanobsd.wleiden
    1616
     17packages_update() {
     18        # Update ports
     19        portshaker -U
     20        portshaker -M
     21}
     22
    1723
    1824packages_initenv() {
     
    2935        cp ${config_dir}/portshaker.d/* /usr/local/etc/portshaker.d
    3036
    31         # Update ports
    32         portshaker -U
    33         portshaker -M
     37        packages_update
    3438
    3539        # Setup poudriere ports environment
     
    8993        packages_refresh
    9094        packages_config $*
     95elif [ "x$1" = "xupdate" ]; then
     96        packages_update
    9197elif [ "x$1" = "xrebuild" ]; then
    9298        packages_refresh
    93         packages_build $PACKAGE_LIST
     99        packages_build -c $PACKAGE_LIST
    94100elif [ "x$1" = "xbuild" ]; then
    95101        packages_refresh
     
    98104        packages_distclean
    99105else
    100         echo "Usage $0 <initenv|config|rebuild|build|distclean>"
     106        echo "Usage $0 <initenv|config|update|rebuild|build|distclean>"
    101107        exit 128
    102108fi
Note: See TracChangeset for help on using the changeset viewer.