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
03a7cfd5
Commit
03a7cfd5
authored
Feb 06, 2010
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmbs: cleanup code
parent
8c8be0ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
16 deletions
+14
-16
rpmbs
bin/rpmbs
+14
-16
No files found.
bin/rpmbs
View file @
03a7cfd5
#!/bin/bash
# (c) Etersoft 2003-20
09
# (c) Etersoft 2003-20
10
# Author: Vitaly Lipatov <lav@etersoft.ru>
# Public domain
#
...
...
@@ -34,7 +34,7 @@ Usage="Usage: $name [-s -u -c -n --nodeps] spec..."
function
mygetopts
()
{
name
=
${
0
##*/
}
Descr
=
"
$name
- make src.rpm from spec"
Descr
=
"
$name
-
run git repo build or
make src.rpm from spec"
phelp
()
{
...
...
@@ -129,21 +129,19 @@ extract_tarball_to_dest()
rpmbs_copying_built
()
{
if
[
-n
"
$ETERDESTSRPM
"
]
;
then
echog
"Copying package(s) in
\$
ETERDESTSRPM"
if
is_ssh_target
"
$ETERDESTSRPM
"
;
then
scp
$LISTBUILT
$ETERDESTSRPM
||
echog
"Error during copying"
else
mkdir
-p
$ETERDESTSRPM
||
echog
"Error mkdir
$ETERDESTSRPM
"
cp
-fv
$LISTBUILT
$ETERDESTSRPM
||
echog
"Error during copying"
[
-n
"
$ETERDESTSRPM
"
]
||
return
echog
"Copying package(s) in
\$
ETERDESTSRPM"
if
is_ssh_target
"
$ETERDESTSRPM
"
;
then
scp
$LISTBUILT
$ETERDESTSRPM
||
echog
"Error during copying"
else
mkdir
-p
$ETERDESTSRPM
||
echog
"Error mkdir
$ETERDESTSRPM
"
cp
-fv
$LISTBUILT
$ETERDESTSRPM
||
echog
"Error during copying"
# Publish tarball if target dir is exist
if
[
-d
"
$ETERDESTSRPM
/tarball"
]
;
then
echog
"There is tarball dir exists. Extract tarball for other build system compatibility."
for
i
in
$LISTBUILT
;
do
extract_tarball_to_dest
$i
$ETERDESTSRPM
/tarball
done
fi
if
[
-d
"
$ETERDESTSRPM
/tarball"
]
;
then
echog
"There is tarball dir exists. Extract tarball for other build system compatibility."
for
i
in
$LISTBUILT
;
do
extract_tarball_to_dest
$i
$ETERDESTSRPM
/tarball
done
fi
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