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
d2fba6f8
Commit
d2fba6f8
authored
Feb 22, 2013
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmbsh: drop REMOTEBUILD support
parent
d1745622
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
35 deletions
+12
-35
rpmbph
bin/rpmbph
+2
-3
rpmbsh
bin/rpmbsh
+10
-32
No files found.
bin/rpmbph
View file @
d2fba6f8
...
@@ -441,8 +441,7 @@ if [ "$PKGVENDOR" = "alt" ] && is_gear $SPECDIR ; then
...
@@ -441,8 +441,7 @@ if [ "$PKGVENDOR" = "alt" ] && is_gear $SPECDIR ; then
fatal
"Commit error. You are still in
$MDISTR
branch with modified and uncommitted spec"
fatal
"Commit error. You are still in
$MDISTR
branch with modified and uncommitted spec"
fi
fi
[
-n
"
$NOBUILD
"
]
&&
BUILDCOMMAND
=
"
$ETERBUILDBIN
/rpmbs
$GIRARHOST
"
[
-n
"
$NOBUILD
"
]
&&
BUILDCOMMAND
=
"
$ETERBUILDBIN
/rpmbs
$GIRARHOST
"
echo
"Run
$BUILDCOMMAND
"
docmd
$BUILDCOMMAND
$LISTRPMARGS
$UPLOADARG
$DISTRARG
$SPEC
||
{
git checkout
$CURBRANCH
;
fatal
"Can't build"
;
}
docmd
$BUILDCOMMAND
$LISTRPMARGS
$UPLOADARG
$REMOTEBUILD
$DISTRARG
$SPEC
||
{
git checkout
$CURBRANCH
;
fatal
"Can't build"
;
}
docmd git checkout
$CURBRANCH
docmd git checkout
$CURBRANCH
exit
$?
exit
$?
fi
fi
...
@@ -467,7 +466,7 @@ for i in $LISTBUILT ; do
...
@@ -467,7 +466,7 @@ for i in $LISTBUILT ; do
test
-f
"
$SPECNAME
"
||
fatal
"Spec
$SPECNAME
is not found"
test
-f
"
$SPECNAME
"
||
fatal
"Spec
$SPECNAME
is not found"
docmd altspec_to_local
$SPECNAME
docmd altspec_to_local
$SPECNAME
docmd
$BUILDCOMMAND
$LISTRPMARGS
$UPLOADARG
$
REMOTEBUILD
$
DISTRARG
$SPECNAME
||
fatal
"Can't build"
docmd
$BUILDCOMMAND
$LISTRPMARGS
$UPLOADARG
$DISTRARG
$SPECNAME
||
fatal
"Can't build"
uni_rpmrm
$SPECNAME
||
true
uni_rpmrm
$SPECNAME
||
true
done
done
bin/rpmbsh
View file @
d2fba6f8
...
@@ -37,13 +37,11 @@ phelp()
...
@@ -37,13 +37,11 @@ phelp()
echog
" -s sign (and move to dir ETERDESTSRPM if defined) after build"
echog
" -s sign (and move to dir ETERDESTSRPM if defined) after build"
echog
" -t make temporary commit before build (rpmbb like behavior)"
echog
" -t make temporary commit before build (rpmbb like behavior)"
echog
" -l lazy cleanup (clean before build, not after)"
echog
" -l lazy cleanup (clean before build, not after)"
# echog " -r remote build (on $BUILDSERVER host)"
}
}
while
getopts
:h
r
ulsimt opt
;
do
while
getopts
:hulsimt opt
;
do
case
$opt
in
case
$opt
in
h
)
phelp
;
exit
0
;;
h
)
phelp
;
exit
0
;;
r
)
REMOTEBUILD
=
1
;;
t
)
COMMIT
=
"--commit"
;;
t
)
COMMIT
=
"--commit"
;;
+?
)
echog
"
$name
: options should not be preceded by a '+'."
1>&2
;
exit
2
;;
+?
)
echog
"
$name
: options should not be preceded by a '+'."
1>&2
;
exit
2
;;
# ?) echog "$name: $OPTARG: bad option. Use -h for help." 1>&2 ; exit 2;;
# ?) echog "$name: $OPTARG: bad option. Use -h for help." 1>&2 ; exit 2;;
...
@@ -82,35 +80,15 @@ if echo "$LISTNAMES" | grep -q spec ; then
...
@@ -82,35 +80,15 @@ if echo "$LISTNAMES" | grep -q spec ; then
set_specdir
$LISTNAMES
set_specdir
$LISTNAMES
fi
fi
if
[
-n
"
$REMOTEBUILD
"
]
;
then
docmd
time
$ETERBUILDBIN
/myhsh
$MENVARG
$LISTRPMARGS
$LISTBUILT
check_ssh_key
RESULT
=
$?
test
-n
"
$BUILDSERVER
"
||
fatal
"Please set BUILDSERVER in config file"
# remove generated src.rpm
# FIXME - get via etersoft-build-utils
for
i
in
$LISTBUILT
;
do
REMOTERPMDIR
=
`
ssh
$BUILDSERVER
echo
$HOME
`
/RPM
estrlist has
$i
$LISTNAMES
||
rm
-f
$i
LISTSRPM
=
"
$(
echo
$LISTBUILT
| xargs
-n1
basename
)
"
done
echo
echog
"############ Build at build server '
$BUILDSERVER
' (with
$LISTRPMARGS
options) ############"
date
echo
echo
"-------------------------------"
echog
"==== Copying to build server ====="
docmd rsync
-vay
--partial
--progress
--checksum
\
-e
ssh
$LISTBUILT
$BUILDSERVER
:
$REMOTERPMDIR
/SRPMS/
||
fatal
"Error with rsync"
# TODO: remove after build
ssh
-t
$BUILDSERVER
"cd
$REMOTERPMDIR
/SRPMS && time myhsh
$MENVARG
$LISTRPMARGS
$LISTSRPM
"
RESULT
=
$?
date
echo
"-------------------------------"
test
"
$RESULT
"
=
"0"
&&
echog
"It was remote build at
$BUILDSERVER
"
||
echog
"There is error during remote build at
$BUILDSERVER
"
else
docmd
time
$ETERBUILDBIN
/myhsh
$MENVARG
$LISTRPMARGS
$LISTBUILT
RESULT
=
$?
# remove generated src.rpm
for
i
in
$LISTBUILT
;
do
echo
$LISTNAMES
|
grep
-q
$i
||
rm
-f
$i
done
date
echo
"-------------------------------"
fi
# make src.rpm if build OK and we have options for rpmbs
# make src.rpm if build OK and we have options for rpmbs
...
...
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