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
ceed8852
Commit
ceed8852
authored
May 13, 2010
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use PROJECTNAME instead BASENAME
parent
73e8dfff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
rpmbs
bin/rpmbs
+8
-5
No files found.
bin/rpmbs
View file @
ceed8852
...
...
@@ -180,20 +180,23 @@ set_binaryrepo $MENV
if
[
-n
"
$UPLOADNOW
"
]
&&
is_gear
$SPECDIR
;
then
echo
"Run with gear repo..."
build_rpms_name
"
$LISTNAMES
"
# hack: get project name from package name
#PROJECTNAME=$(echo $BASENAME | filter_gear_name)
PROJECTNAME
=
$(
get_gear_name
)
pkg_release_check
TAG
=
$VERSION
-
$RELEASE
check_gear_and_tag
"
$TAG
"
# || fatal "Can't make tag"
$ETERBUILDBIN
/gpush
$GIRARHOST
||
fatal
"Git push via gpush failed. Possibly you need to run ginit for create remote repo."
echo
echo
"Run build
$
BASE
NAME
at
$GIRARHOST
"
echo
"Run build
$
PROJECT
NAME
at
$GIRARHOST
"
if
[
-n
"
$TASKNUMBER
"
]
;
then
ssh
$GIRARHOST
task add
$TASKNUMBER
repo
$
BASE
NAME
$TAG
2>&1 |
tee
$RPMDIR
/uploaded.log.tmp
ssh
$GIRARHOST
task add
$TASKNUMBER
repo
$
PROJECT
NAME
$TAG
2>&1 |
tee
$RPMDIR
/uploaded.log.tmp
else
ssh
$GIRARHOST
build
-b
$BINARYREPO
$
BASE
NAME
$TAG
2>&1 |
tee
$RPMDIR
/uploaded.log.tmp
ssh
$GIRARHOST
build
-b
$BINARYREPO
$
PROJECT
NAME
$TAG
2>&1 |
tee
$RPMDIR
/uploaded.log.tmp
fi
# FIXME: incorporate
cat
$RPMDIR
/uploaded.log.tmp |
grep
task |
head
-n2
|
tail
-n1
>>
$RPMDIR
/uploaded.log
echo
" run
$TASKNUMBER
task
$
BASE
NAME
with tag
$TAG
at
$GIRARHOST
(in
$BINARYREPO
) at
`
date
"+%c"
`
"
>>
$RPMDIR
/uploaded.log
echo
" run
$TASKNUMBER
task
$
PROJECT
NAME
with tag
$TAG
at
$GIRARHOST
(in
$BINARYREPO
) at
`
date
"+%c"
`
"
>>
$RPMDIR
/uploaded.log
rm
-f
$RPMDIR
/uploaded.log.tmp
exit
fi
...
...
@@ -212,7 +215,7 @@ if [ -n "$REMOTEBUILD" ] ; then
echog
"==== Copying to build server ====="
#echog "It is recommended to rename old version at server for save traffic during rsync"
rsync
-vay
--partial
--progress
--checksum
\
-e
ssh
$LISTBUILT
$BUILDSERVER
:/
$RPMTOPDIR
/SRPMS/
||
exit
1
-e
ssh
$LISTBUILT
$BUILDSERVER
:/
$RPMTOPDIR
/SRPMS/
||
exit
1
$REMCOM
rpmbs
--helper
$MENVARG
$LISTRPMARGS
$LISTBUILT
exit
0
fi
...
...
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