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
aa22fc5d
Commit
aa22fc5d
authored
Jul 14, 2010
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmbs: add support for -b (binary repo)
parent
7bb1d7cd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
rpmbs
bin/rpmbs
+7
-3
alt
share/eterbuild/functions/alt
+5
-0
No files found.
bin/rpmbs
View file @
aa22fc5d
...
@@ -45,7 +45,8 @@ phelp()
...
@@ -45,7 +45,8 @@ phelp()
echog
"Options:"
echog
"Options:"
echog
" -u - sign and run gear build task after build"
echog
" -u - sign and run gear build task after build"
echog
" -a TASK - sign package(s)/repo, push/upload it and add to (shared) task TASK"
echog
" -a TASK - sign package(s)/repo, push/upload it and add to (shared) task TASK"
echog
" -p POCKET - build package in POCKET (supported on git.etersoft.ru)"
echog
" -p POCKET - build package in POCKET (supported on git.etersoft.ru only)"
echog
" -b REPONAME - binary repository name (4.1, 5.0, 5.1 and so on)"
echog
"Ext. options:"
echog
"Ext. options:"
echog
" -c - only sign package(s) with checking"
echog
" -c - only sign package(s) with checking"
echog
" -f - force operation (overwrite tag)"
echog
" -f - force operation (overwrite tag)"
...
@@ -58,7 +59,7 @@ phelp()
...
@@ -58,7 +59,7 @@ phelp()
# echog " -d - remove package(s) from SRPMS and Incoming"
# echog " -d - remove package(s) from SRPMS and Incoming"
}
}
while
getopts
:hfstcuUdnop:a:z opt
;
do
while
getopts
:hfstcuUdnop:a:
b:
z opt
;
do
case
$opt
in
case
$opt
in
h
)
phelp
;
exit
0
;;
h
)
phelp
;
exit
0
;;
s
)
SIGN
=
1
;;
s
)
SIGN
=
1
;;
...
@@ -69,6 +70,8 @@ while getopts :hfstcuUdnop:a:z opt; do
...
@@ -69,6 +70,8 @@ while getopts :hfstcuUdnop:a:z opt; do
u
)
UPLOADNOW
=
1
;
SIGN
=
1
;;
u
)
UPLOADNOW
=
1
;
SIGN
=
1
;;
# U) UPLOADNOW=1 ; SIGN=1 ; UPDATES=1 ;;
# U) UPLOADNOW=1 ; SIGN=1 ; UPDATES=1 ;;
a
)
UPLOADNOW
=
1
;
SIGN
=
1
;
TASKNUMBER
=
$OPTARG
;;
a
)
UPLOADNOW
=
1
;
SIGN
=
1
;
TASKNUMBER
=
$OPTARG
;;
# see functions/alt:set_binaryrepo() for BINARYREPONAME
b
)
BINARYREPONAME
=
$OPTARG
;;
n
)
NOCHECK
=
1
;
;;
n
)
NOCHECK
=
1
;
;;
o
)
NOSOURCE
=
1
;
;;
o
)
NOSOURCE
=
1
;
;;
p
)
UPLOADNOW
=
1
;
SIGN
=
1
;
POCKET
=
$OPTARG
;;
p
)
UPLOADNOW
=
1
;
SIGN
=
1
;
POCKET
=
$OPTARG
;;
...
@@ -189,6 +192,7 @@ fi
...
@@ -189,6 +192,7 @@ fi
# set SPECDIR from LISTNAMES if empty
# set SPECDIR from LISTNAMES if empty
[
-n
"
$SPECDIR
"
]
||
set_specdir
$LISTNAMES
[
-n
"
$SPECDIR
"
]
||
set_specdir
$LISTNAMES
# see functions/alt:set_binaryrepo() for BINARYREPONAME
set_binaryrepo
$MENV
set_binaryrepo
$MENV
# If we build from gear repo, run task
# If we build from gear repo, run task
...
@@ -334,7 +338,7 @@ for i in $LISTBUILT ; do
...
@@ -334,7 +338,7 @@ for i in $LISTBUILT ; do
echo
"uploaded"
>>
$LOGFILE
echo
"uploaded"
>>
$LOGFILE
TEXTADD
=
" run
$TASKNUMBER
build src.rpm"
TEXTADD
=
" run
$TASKNUMBER
build src.rpm"
[
-z
"
$TASKNUMBER
"
]
||
TEXTADD
=
" add src.rpm to task
$TASKNUMBER
"
[
-z
"
$TASKNUMBER
"
]
||
TEXTADD
=
" add src.rpm to task
$TASKNUMBER
"
echo
"
$(
basename
$i
)
$TEXTADD
at
$GIRARHOST
(
$
MENV
) at
`
date
"+%c"
`
"
>>
$RPMDIR
/uploaded.log
echo
"
$(
basename
$i
)
$TEXTADD
at
$GIRARHOST
(
$
BINARYREPO
) at
`
date
"+%c"
`
"
>>
$RPMDIR
/uploaded.log
done
done
rm
-f
$RPMDIR
/uploaded.log.tmp
rm
-f
$RPMDIR
/uploaded.log.tmp
...
...
share/eterbuild/functions/alt
View file @
aa22fc5d
...
@@ -58,6 +58,11 @@ get_type_by_current_branch()
...
@@ -58,6 +58,11 @@ get_type_by_current_branch()
set_binaryrepo
()
set_binaryrepo
()
{
{
BINARYREPO
=
"sisyphus"
BINARYREPO
=
"sisyphus"
if
[
-n
"
$BINARYREPONAME
"
]
;
then
BINARYREPO
=
"
$BINARYREPONAME
"
MENVARG
=
"-
$(
get_altdistr_mod
$BINARYREPO
)
"
return
fi
test
-z
"
$1
"
&&
return
test
-z
"
$1
"
&&
return
if
[
-n
"
$UPDATES
"
]
;
then
if
[
-n
"
$UPDATES
"
]
;
then
BINARYREPO
=
"
`
get_altdistr_version
$1
`
"
BINARYREPO
=
"
`
get_altdistr_version
$1
`
"
...
...
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