Commit 375c06f6 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add -q support to rpmlog and gammit

parent 408fe450
#!/bin/sh
# Do gear-commit -a
# 2014, 2017 (c) Etersoft https://etersoft.ru
# Author: Vitaly Lipatov <lav@etersoft.ru>
# Public domain
# load common functions, compatible with local and installed script
. `dirname $0`/../share/eterbuild/functions/common
if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
echo "gammit - make commit with description from last changelog entry in spec"
echo "gammit [-q] [files] - make commit with description from last changelog entry in spec"
echo "Use: gammit"
echo " -q - skip editor"
exit 0
fi
if [ "$1" = "-q" ] ; then
shift
ARG="$ARG --no-edit"
fi
# If no args
if [ -z "$1" ] ; then
ARG="$ARG -a"
fi
docmd gear-commit $ARG $@
docmd gear-commit $ARG "$@"
......@@ -148,4 +148,4 @@ fi
add_changelog_helper "$CHANGELOG" $SPECNAME || fatal "add_changelog failed, do not commit anything"
#git_commit_ignore_nothing $SPECNAME -m "new build $NEWREV (with rpmlog script)"
gammit --spec=$SPECNAME $SPECNAME
gammit $QUIET --spec=$SPECNAME $SPECNAME
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment