Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-build-utils
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
korinf
etersoft-build-utils
Commits
d2f463f9
Commit
d2f463f9
authored
Aug 28, 2018
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmlog: add -o option (just print git log)
parent
f06cd1ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
rpmlog
bin/rpmlog
+13
-1
No files found.
bin/rpmlog
View file @
d2f463f9
...
...
@@ -23,6 +23,7 @@ if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
echo
echog
"Ext. options:"
echog
" -t test run (without change files and repo)"
echog
" -o print git log since last release tag or TAG"
echog
" -q quiet mode (do not ask anything)"
echog
" -n VERSION set version and reset release"
echo
...
...
@@ -79,6 +80,12 @@ if [ "$1" = "-t" ] ; then
shift
fi
GITLOG
=
if
[
"
$1
"
=
"-o"
]
;
then
GITLOG
=
$1
shift
fi
LASTVERCMD
=
if
[
"
$1
"
=
"--last-version"
]
;
then
LASTVERCMD
=
1
...
...
@@ -125,7 +132,7 @@ if [ -n "$LASTCHANGELOGCMD" ] ; then
exit
$?
fi
[
-n
"
$CHANGELOGADD$CHANGELOGUPDATE$TESTRUN
"
]
||
fatal
"Run with -t param for test or with -h for help"
[
-n
"
$CHANGELOGADD$CHANGELOGUPDATE$TESTRUN
$GITLOG
"
]
||
fatal
"Run with -t param for test or with -h for help"
if
[
-z
"
$FROMTAG
"
]
;
then
build_rpms_name
$SPECNAME
...
...
@@ -140,6 +147,11 @@ if [ -z "$CHANGELOGADD" ] && is_last_commit_tag ; then
exit
0
fi
if
[
-n
"
$GITLOG
"
]
;
then
git log
$FROMTAG
..
$TOTAG
--reverse
--no-merges
--pretty
=
"%H %s"
exit
fi
if
[
-n
"
$CHANGELOGADD
"
]
;
then
CHANGELOG
=
"-
$TEXTMESSAGE
"
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment