Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
kiss: stop making build file modifiable by hooks
Browse files Browse the repository at this point in the history
This was half-assed. I'd much prefer we keep things simple and users
use repositories for this purpose. Either full or partial forks. This
is "proper" and stores the build configuration
  • Loading branch information
dylanaraps committed Aug 14, 2020
1 parent 7cfce11 commit 93b598d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions kiss
Original file line number Diff line number Diff line change
Expand Up @@ -632,17 +632,13 @@ pkg_build() {
# Log the version so we can pass it to the package build file.
read -r build_version _ < "$repo_dir/version"

# Copy the build file to the build directory to users to modify it
# temporarily at runtime.
cp -f "$repo_dir/build" "$mak_dir/$pkg/.build.kiss"

log "$pkg" "Starting build"
run_hook pre-build "$pkg" "$pkg_dir/$pkg"

# Call the build script, log the output to the terminal and to a file.
# There's no PIPEFAIL in POSIX shelll so we must resort to tricks like
# killing the script ourselves.
{ ./.build.kiss "$pkg_dir/$pkg" "$build_version" 2>&1 || {
{ "$repo_dir/build" "$pkg_dir/$pkg" "$build_version" 2>&1 || {
log "$pkg" "Build failed"
log "$pkg" "Log stored to $log_dir/$pkg-$time-$pid"
run_hook build-fail "$pkg" "$pkg_dir/$pkg"
Expand Down

0 comments on commit 93b598d

Please sign in to comment.