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
2cead7b0
Commit
2cead7b0
authored
Jul 05, 2018
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmgs: add download script support (Source-script)
parent
982689b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
rpmgs
bin/rpmgs
+13
-1
No files found.
bin/rpmgs
View file @
2cead7b0
...
...
@@ -170,6 +170,12 @@ function get_source_url()
#rhas "$GETSOURCEURL" "%" && fatal "some macro unexpanded in URL. Check $TMPSPEC"
}
# Source-script: .gear/update.sh
function
get_source_script
()
{
GETSOURCESCRIPT
=
$(
source_ext
"
$1
"
script
"
$2
"
)
}
function
print_error
()
{
echog
"Can't find any spec file. It is possible you run this script not in git dir."
...
...
@@ -475,7 +481,7 @@ do
#[ -f "$RPMSOURCEDIR/$FTB" ] && { echog "Tarball $FTB already exists in $RPMSOURCEDIR dir, skipping." ; continue ; }
# Test for eterbuild extensions (will set GETSOURCEURL or GETSOURCESVN)
get_source_url
$spec
$SN
||
get_source_git
$spec
$SN
||
get_source_svn
$spec
$SN
get_source_url
$spec
$SN
||
get_source_git
$spec
$SN
||
get_source_svn
$spec
$SN
||
get_source_script
$spec
$SN
#[ "$SN" = "Source1" ] && exit
#if ! rhas "$GETSOURCE" ".tar$" ; then
# warning "It is recommended to use .tar tarballs for sources ($FTB now)"
...
...
@@ -487,6 +493,12 @@ do
elif
[
-n
"
${
GETSOURCEGIT
}
"
]
;
then
is_gear
$SPECDIR
||
fatal
"Source-git works only with gear repo"
elif
[
-n
"
${
GETSOURCESCRIPT
}
"
]
;
then
is_gear
$SPECDIR
||
fatal
"Source-script works only with gear repo"
#[ -x "$GETSOURCESCRIPT" ] || fatal "Can't find executable $GETSOURCESCRIPT"
bash
-x
$(
get_root_git_dir
)
/
$GETSOURCESCRIPT
$GSSETVERSION
"
$FTB
"
||
fatal
"fatal with
$GETSOURCESCRIPT
"
DOWNLOADSOME
=
1
# TODO: rewrite code to use original file format and temp. download dir
elif
[
-n
"
${
GETSOURCEURL
}
"
]
;
then
if
[
-z
"
$FORCEDOWNLOAD
"
]
&&
check_tarball
"
$FTB
"
;
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