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
a5259dd8
Commit
a5259dd8
authored
Mar 14, 2017
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmgs: add support for build source from git repo with submodules
parent
83f53830
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
1 deletion
+28
-1
rpmgs
bin/rpmgs
+28
-1
No files found.
bin/rpmgs
View file @
a5259dd8
#!/bin/bash
# 2005-2006, 2009, 2014, 2015, 2016 (c) Etersoft www.etersoft.ru
# 2005-2006, 2009, 2014, 2015, 2016
, 2017
(c) Etersoft www.etersoft.ru
# 2005-2016 Author: Vitaly Lipatov <lav@etersoft.ru>
# Public domain
#
...
...
@@ -194,6 +194,31 @@ commit_tarball()
fi
}
# update .gear/@name@-postsubmodules if needed
# uses: BASENAME VERSION
update_post_git_submodules
()
{
local
PSM
=
$(
get_root_git_dir
)
/.gear/
$BASENAME
-postsubmodules
[
-d
$PSM
]
||
return
info
"Detected post git submodules hook"
cat
$(
get_root_git_dir
)
/.gear/rules |
grep
-q
"tar:.*-postsubmodules"
||
fatal
"missed tar:.gear/
$BASENAME
-posmodules in
$(
get_root_git_dir
)
/.gear/rules"
docmd git submodule init
docmd git submodule
sync
docmd git submodule update
||
fatal
rm
-rfv
$PSM
/
*
# echo * do not catch .names really
cp
-a
$(
echo
*
|
grep
-v
-E
"(.gear|.git)"
)
$PSM
/
||
fatal
find
$PSM
-name
".git"
-type
f
-delete
-print
find
$PSM
-name
".gitsubmodules"
-type
f
-delete
-print
docmd git add
-f
$PSM
docmd git commit
$PSM
-m
"update source prepared with submodules for version
$VERSION
"
}
parse_cmd_pre_spec
"
$@
"
mygetopts
$LISTARGS
...
...
@@ -330,6 +355,8 @@ do
if
[
-d
"
$(
get_root_git_dir
)
/.gear/tags"
]
;
then
docmd gear-update-tag
-a
fi
update_post_git_submodules
#docmd gammit
#docmd git commit -m "merge $FTB with rpmgs script"
elif
is_gear
;
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