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
3d9e4ece
Commit
3d9e4ece
authored
Aug 17, 2015
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
intro get_packager and use it in rpmlog
parent
98fa84a5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
rpmlog
bin/rpmlog
+2
-0
common
share/eterbuild/functions/common
+7
-0
No files found.
bin/rpmlog
View file @
3d9e4ece
...
...
@@ -110,6 +110,8 @@ CHANGELOG="`git log $FROMTAG..$TOTAG --reverse --simplify-merges --dense --prett
[
-n
"
$CHANGELOG
"
]
||
fatal
"git log was failed. Probably, you have no tag
$FROMTAG
in your repo. Check the source repository."
fi
[
-n
"
$(
get_packager
$SPECNAME
)
"
]
||
fatal
"You need set packager in your spec (use
$
rpmcs for it) or in ~/.rpmmacros file"
if
[
-n
"
$TESTRUN
"
]
;
then
INCREMENTMODE
=
""
fi
...
...
share/eterbuild/functions/common
View file @
3d9e4ece
...
...
@@ -266,6 +266,12 @@ get_gear_name()
[
-n
"
$gn
"
]
}
get_packager
()
{
local
packager
=
$(
$RPMBUILD
--eval
"%packager"
"
$1
"
)
rhas
"
$packager
"
"packager"
&&
fatal
"Packager
$packager
is not defined correctly in spec
$1
or in ~/.rpmmacros"
}
if
[
"
$UID
"
=
"0"
]
&&
[
-z
"
$ALLOW_ROOT_USER
"
]
;
then
fatal
"It is strict recommended do not use these scripts as root"
...
...
@@ -489,3 +495,4 @@ version_more_version()
{
[
"
$2
"
=
"
$(
echo
-e
"
$1
\n
$2
"
|
sort
-n
|
head
-n1
)
"
]
}
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