On 2017-12-11 13:30, [ext] Jan Kiszka wrote:
> From: Jan Kiszka <[email protected]>
> 
> Avoids mistakes during the boring release process.
> 
> Signed-off-by: Jan Kiszka <[email protected]>
> ---
>  scripts/make_release | 45 +++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 45 insertions(+)
>  create mode 100755 scripts/make_release
> 
> diff --git a/scripts/make_release b/scripts/make_release
> new file mode 100755
> index 0000000..87512a1
> --- /dev/null
> +++ b/scripts/make_release
> @@ -0,0 +1,45 @@
> +#!/bin/bash
> +#
> +# EFI Boot Guard
> +#
> +# Copyright (c) Siemens AG, 2014-2017
> +#
> +# Authors:
> +#  Jan Kiszka <[email protected]>
> +#
> +# This work is licensed under the terms of the GNU GPL, version 2.  See
> +# the COPYING file in the top-level directory.
> +#
> +
> +usage() {
> +     echo "usage: $0 name"
> +     exit 1
> +}
> +
> +name=$1
> +
> +if [ -z "$name" ]; then
> +     usage
> +fi
> +
> +if [ ! -f VERSION ] || [ ! -d .git ]; then
> +     echo "Must be run from top-level directory"
> +     exit 1
> +fi
> +
> +if [ -n "`git status -s -uno`" ]; then
> +     echo "Working directory is dirty!"
> +     exit 1
> +fi
> +
> +echo -e "Tag commit\n\n    `git log -1 --oneline`"
> +echo -e "\nof branch\n\n    `git branch | sed -n 's/^\* //p'`"
> +echo -ne "\nas $name? (y/N) "
> +read answer
> +if [ "$answer" != "y" ]; then
> +     exit 1
> +fi
> +
> +echo $name > VERSION
> +git commit -sv VERSION -m "Bump version number"
> +git tag -as $name -m "Release $name"
> 

OK, given that this script is orthogonal to the core and passed local
testing by tagging v0.2 successfully, I'll take it to master via a fast
path and push the release now.

Jan

-- 
Siemens AG, Corporate Technology, CT RDA ITP SES-DE
Corporate Competence Center Embedded Linux

-- 
You received this message because you are subscribed to the Google Groups "EFI 
Boot Guard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/efibootguard-dev/ea2b79d6-3e27-9019-ea72-de78e8b9a868%40siemens.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to