• Chloe Kudryavtsev's avatar
    Add default_cleanup_srcdir · 6a6310f0
    Chloe Kudryavtsev authored
    In some cases, a simple rm -rf is not sufficent to clean srcdir.
    One such case is the new go module system, that marks everything as
    read-only - thus only letting root rm -rf it without a chmod.
    There is a command intended to clean them - `go clean -modcache`.
    However, for that to work, GOPATH must be defined and existent.
    Running chmod for all srcdir cleanups makes no sense, nor does enforcing
    root, or putting global overrides just for go.
    
    This patch allows overriding what happens on `cleanup srcdir`, by
    overriding cleanup_srcdir, and allows the use of default_cleanup_srcdir.
    
    In our go example, it might be used as such:
    
    cleanup_srcdir() {
    	go clean -modcache
    	default_cleanup_srcdir
    }
    6a6310f0
Name
Last commit
Last update
.devbuildrc Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
APKBUILD.5 Loading commit data...
Makefile Loading commit data...
abuild-fetch.c Loading commit data...
abuild-gzsplit.c Loading commit data...
abuild-keygen.in Loading commit data...
abuild-rmtemp.c Loading commit data...
abuild-sign.in Loading commit data...
abuild-sudo.c Loading commit data...
abuild-tar.c Loading commit data...
abuild.conf Loading commit data...
abuild.in Loading commit data...
abump.in Loading commit data...
apkbuild-cpan.in Loading commit data...
apkbuild-gem-resolver.in Loading commit data...
apkbuild-pypi.in Loading commit data...
apkgrel.in Loading commit data...
bootchartd Loading commit data...
buildlab.in Loading commit data...
checkapk.in Loading commit data...
config.guess Loading commit data...
config.sub Loading commit data...
functions.sh.in Loading commit data...
newapkbuild.1 Loading commit data...
newapkbuild.in Loading commit data...
sample.APKBUILD Loading commit data...
sample.confd Loading commit data...
sample.initd Loading commit data...
sample.post-install Loading commit data...
sample.pre-install Loading commit data...