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
0ddc2737
Commit
0ddc2737
authored
Dec 10, 2009
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmbsh: disable cd to SRPMS dir (will need fix?)
parent
80e36bae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
rpmbsh
bin/rpmbsh
+6
-4
No files found.
bin/rpmbsh
View file @
0ddc2737
...
...
@@ -70,6 +70,7 @@ fi
parse_cmd_pre
"
$@
"
mygetopts
$LISTARGS
# TODO: skip for prev. packed src.rpm
# If fail, we already has correct changelog
add_changelog_helper
"- new version"
$LISTNAMES
...
...
@@ -78,6 +79,7 @@ add_changelog_helper "- new version" $LISTNAMES
# FIXME:
pack_src_rpm
$COMMIT
$(
echo
$LISTRPMARGS
|
sed
-e
"s|-[suUic]||g"
)
# TODO: skip for prev. packed src.rpm
set_specdir
$LISTNAMES
if
[
-n
"
$REMOTEBUILD
"
]
;
then
...
...
@@ -88,8 +90,9 @@ if [ -n "$REMOTEBUILD" ] ; then
echog
"############ Build at build server '
$BUILDSERVER
' (with
$LISTRPMARGS
options) ############"
echo
echog
"==== Copying to build server ====="
#echog "It is recommended to rename old version at server for save traffic during rsync"
cd
$RPMTOPDIR
/SRPMS
&&
rsync
-vay
--partial
--progress
--checksum
\
# FIXME: do not change dir? Why LISTBUILT is not full path?
#cd $RPMTOPDIR/SRPMS
rsync
-vay
--partial
--progress
--checksum
\
-e
ssh
$LISTBUILT
$BUILDSERVER
:
$REMOTERPMDIR
/SRPMS/
||
fatal
"Error with rsync"
ssh
-t
$BUILDSERVER
"cd
$REMOTERPMDIR
/SRPMS && time myhsh
$MENVARG
$LISTRPMARGS
$LISTBUILT
"
RESULT
=
$?
...
...
@@ -99,13 +102,12 @@ if [ -n "$REMOTEBUILD" ] ; then
else
cd
$RPMTOPDIR
/SRPMS
&&
time
$ETERBUILDBIN
/myhsh
$MENVARG
$LISTRPMARGS
$LISTBUILT
RESULT
=
$?
cd
-
date
echo
"-------------------------------"
fi
cd
-
# make src.rpm if build OK and we have options for rpmbs
if
[
"
$RESULT
"
=
"0"
]
&&
[
-n
"
$LISTRPMARGS
"
]
;
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