Changeset 14124 in hybrid


Ignore:
Timestamp:
Apr 10, 2018, 9:56:03 PM (7 years ago)
Author:
rick
Message:

Add distclean of all package generation utilities

Required for total refresh in case of change in build configuration

File:
1 edited

Legend:

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

    r14123 r14124  
    7171
    7272
     73packages_distclean() {
     74        pkg delete -y poudriere portshaker
     75        # Remove immuable flags of jail installed (temponary files)
     76        chflags -R 0 /usr/local/poudriere
     77        rm -R /usr/local/etc/poudriere.conf /usr/local/etc/poudriere.d  /usr/local/poudriere
     78        rm -R /usr/local/etc/portshaker.conf /usr/local/etc/portshaker.d /var/cache/portshaker
     79}
     80
     81
     82
    7383if [ "x$1" = "xinitenv" ]; then
    7484        packages_initenv
     
    8595        packages_refresh
    8696        packages_build $PACKAGE_LIST
     97elif [ "x$1" = "xdistclean" ]; then
     98        packages_distclean
    8799else
    88         echo "Usage $0 <initenv|config|rebuild|build>"
     100        echo "Usage $0 <initenv|config|rebuild|build|distclean>"
    89101        exit 128
    90102fi
Note: See TracChangeset for help on using the changeset viewer.