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
b985511d
Commit
b985511d
authored
Mar 15, 2017
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmgs: support hack version HEAD in args
parent
a5259dd8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
rpmgs
bin/rpmgs
+8
-2
No files found.
bin/rpmgs
View file @
b985511d
...
...
@@ -215,6 +215,8 @@ update_post_git_submodules()
find
$PSM
-name
".git"
-type
f
-delete
-print
find
$PSM
-name
".gitsubmodules"
-type
f
-delete
-print
docmd git add
-f
$PSM
# TODO: put short commit id in a description
# git rev-parse --short HEAD
docmd git commit
$PSM
-m
"update source prepared with submodules for version
$VERSION
"
}
...
...
@@ -250,7 +252,7 @@ do
set_specdir
$spec
# Set version if needed
if
[
-n
"
$GSSETVERSION
"
]
;
then
if
[
-n
"
$GSSETVERSION
"
]
&&
[
"
$GSSETVERSION
"
!=
"HEAD"
]
;
then
CURVER
=
$(
get_version
$spec
)
set_version
$spec
$GSSETVERSION
if
[
"
$CURVER
"
!=
"
$GSSETVERSION
"
]
;
then
...
...
@@ -349,7 +351,11 @@ do
docmd git fetch upstream
||
fatal
#TODO check tag: v%version or %version
[
-n
"
$GSSETVERSION
"
]
||
fatal
"Sorry, I don't know new version"
docmd git merge v
$GSSETVERSION
||
docmd git merge
$GSSETVERSION
if
[
"
$GSSETVERSION
"
=
"HEAD"
]
;
then
docmd git merge upstream/master
else
docmd git merge v
$GSSETVERSION
||
docmd git merge
$GSSETVERSION
fi
# TODO: it is more clean detect that dir
if
[
-d
"
$(
get_root_git_dir
)
/.gear/tags"
]
;
then
...
...
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