#!/bin/bash
# dev/package/release - package releases
set -e
lib_load 'dev/package/versions'
lib_load 'dev/tool/make'
######
# Package Releases
package_release_ready() {
local version
version=$(package_version_read_full)
warn "FIXME: run distcheck for v$version release candidate"
#package_check_dist "test" "dist/$PKG-$version.tar.xz" "${APPS[*]}"
}
package_release() {
has_args 1 "$@"
local part=$1
make_run dist-all
local version
version=$(package_version_read_full)
run chmod 444 dist/${PKG}-$version/*
run package_release_ready || error "release is not ready"
run package_version_tag
run package_version_bump "$part"
}
package_release_tag() {
local version
version=$(package_version_read)
if package_release_ready; then
info "... distcheck passed"
run package_version_tag
info "release $version tagged"
fi
}
package_release_undo() {
package_version_unbump
package_version_untag
}
Generated on Tue Apr 25 21:20:41 PDT 2017 by mcsh i7 v0.18.0.