Move prebuild_setup to environment.sh.

This can be overridden by package files so should be defined here.
This commit is contained in:
Simon Howard 2017-01-08 00:02:45 +01:00
parent d4c4acbde0
commit fad168c090
2 changed files with 6 additions and 6 deletions

View file

@ -120,12 +120,6 @@ cmd_fetch() {
do_fetch
}
# Function invoked before a package is built to set up the build environment,
# if necessary. Can be overridden by pkgdef files.
prebuild_setup() {
true
}
cmd_build() {
install_dependencies
chocpkg fetch "$PACKAGE_NAME"

View file

@ -148,5 +148,11 @@ setup_build_environment() {
fi
}
# Function invoked before a package is built to set up the build environment,
# if necessary. Can be overridden by pkgdef files.
prebuild_setup() {
true
}
load_package_file