stuff
This commit is contained in:
32
update.sh
32
update.sh
@@ -11,6 +11,8 @@ function nix_common() {
|
||||
v nix --show-trace -L -v "$@"
|
||||
}
|
||||
|
||||
svl_assert_probably_in_script_dir
|
||||
|
||||
what="${1-}"
|
||||
|
||||
if ! git diff --quiet --exit-code HEAD; then
|
||||
@@ -46,11 +48,27 @@ if [[ $what == 'bandcamp-collection-downloader' ]] || [[ $what == 'bcd' ]] || [[
|
||||
remove_commit_message
|
||||
fi
|
||||
|
||||
if [[ $what == 'genieacs' ]] || [[ $what == 'genie' ]] || [[ -z $what ]]; then
|
||||
nix_common run '.#stable.nix-update' -- genieacs --flake --write-commit-message "$commit_message_path"
|
||||
if ! git diff --quiet --exit-code HEAD -- packages/genieacs; then
|
||||
v git commit --file="$commit_message_path" -- packages/genieacs
|
||||
fi
|
||||
function standard_package() {
|
||||
svl_min_args $# 1
|
||||
declare -a names=("$@")
|
||||
declare primary_name="${names[0]}"
|
||||
if svl_in_array "$what" "${names[@]}" || [[ -z $what ]]; then
|
||||
nix_common run '.#stable.nix-update' -- "$primary_name" --flake --write-commit-message "$commit_message_path"
|
||||
if ! git diff --quiet --exit-code HEAD -- packages/"$primary_name"; then
|
||||
declare flake_path
|
||||
flake_path="$(printf '.#"%q"' "$primary_name")"
|
||||
nix_common build "$flake_path" --no-link
|
||||
v git commit --file="$commit_message_path" -- packages/"$primary_name"
|
||||
fi
|
||||
|
||||
remove_commit_message
|
||||
fi
|
||||
remove_commit_message
|
||||
fi
|
||||
}
|
||||
|
||||
standard_package genieacs genie
|
||||
|
||||
standard_package openterface-qt openterface
|
||||
|
||||
standard_package transferwee
|
||||
|
||||
standard_package z3
|
||||
|
Reference in New Issue
Block a user