No results
2
Tips
Alexander Amelkin edited this page 2018年04月12日 15:09:22 +03:00
Table of Contents
Tips
Various tips. Stuff that doesn't fit anywhere else yet.
ChangeLog update
Here is an easy an automated way to get list of changes for ChangeLog update between HEAD and the last version. Cleanup/review the list of new changes manually.
#!/bin/sh
# 2015/Nov/22 @ Zdenek Styblik <stybla@turnovfree.net>
# Desc: Get changes between IPMI tool releases
set -e
set -u
check_version() {
local version="${1}"
if ! printf -- "%s" "${version}" | grep -q -E -e '^[0-9]+\.[0-9]+\.[0-9]+$'; then
printf "Invalid version '%s' of IPMI tool given.\n" "${version}" 1>&2
exit 1
fi
}
old_version=${1:-''}
new_version=${2:-''}
check_version "${old_version}"
check_version "${new_version}"
new_changelog="ChangeLog.new"
today=$(date +%Y-%m-%d)
cat /dev/null > "${new_changelog}"
printf "version %s %s\n" "${new_version}" "${today}" > "${new_changelog}"
old_version_fmt=$(printf -- "%s" "${old_version}" | sed 's@\.@_@g')
git log --pretty=oneline HEAD ^IPMITOOL_"${old_version_fmt}" | \
cut -d' ' -f2- | \
sort | \
awk '{ printf "\t* %s\n", 0ドル }' | \
fmt -s /dev/stdin >> "${new_changelog}"
printf "\n" >> "${new_changelog}"
cat ChangeLog >> "${new_changelog}"
mv "${new_changelog}" ChangeLog
Cutting the new release
- Update ChangeLog
- Bump version in
configure.ac - Commit
- Tag the commit
- Since the process of releasing files at GitHub is yet unknown/not documented, that's it.
Building in Docker
You can do a throw away build in Docker now. Docker Image is based on Debian Jessie and you can find a Dockerfile here. Dockerfiles based on other distributions, or links to such Dockerfiles, are welcome!