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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
rpmbs
bin/rpmbs
+3
-5
No files found.
bin/rpmbs
View file @
03a7cfd5
#!/bin/bash
#!/bin/bash
# (c) Etersoft 2003-20
09
# (c) Etersoft 2003-20
10
# Author: Vitaly Lipatov <lav@etersoft.ru>
# Author: Vitaly Lipatov <lav@etersoft.ru>
# Public domain
# Public domain
#
#
...
@@ -34,7 +34,7 @@ Usage="Usage: $name [-s -u -c -n --nodeps] spec..."
...
@@ -34,7 +34,7 @@ Usage="Usage: $name [-s -u -c -n --nodeps] spec..."
function
mygetopts
()
function
mygetopts
()
{
{
name
=
${
0
##*/
}
name
=
${
0
##*/
}
Descr
=
"
$name
- make src.rpm from spec"
Descr
=
"
$name
-
run git repo build or
make src.rpm from spec"
phelp
()
phelp
()
{
{
...
@@ -129,14 +129,13 @@ extract_tarball_to_dest()
...
@@ -129,14 +129,13 @@ extract_tarball_to_dest()
rpmbs_copying_built
()
rpmbs_copying_built
()
{
{
if
[
-n
"
$ETERDESTSRPM
"
]
;
the
n
[
-n
"
$ETERDESTSRPM
"
]
||
retur
n
echog
"Copying package(s) in
\$
ETERDESTSRPM"
echog
"Copying package(s) in
\$
ETERDESTSRPM"
if
is_ssh_target
"
$ETERDESTSRPM
"
;
then
if
is_ssh_target
"
$ETERDESTSRPM
"
;
then
scp
$LISTBUILT
$ETERDESTSRPM
||
echog
"Error during copying"
scp
$LISTBUILT
$ETERDESTSRPM
||
echog
"Error during copying"
else
else
mkdir
-p
$ETERDESTSRPM
||
echog
"Error mkdir
$ETERDESTSRPM
"
mkdir
-p
$ETERDESTSRPM
||
echog
"Error mkdir
$ETERDESTSRPM
"
cp
-fv
$LISTBUILT
$ETERDESTSRPM
||
echog
"Error during copying"
cp
-fv
$LISTBUILT
$ETERDESTSRPM
||
echog
"Error during copying"
# Publish tarball if target dir is exist
# Publish tarball if target dir is exist
if
[
-d
"
$ETERDESTSRPM
/tarball"
]
;
then
if
[
-d
"
$ETERDESTSRPM
/tarball"
]
;
then
echog
"There is tarball dir exists. Extract tarball for other build system compatibility."
echog
"There is tarball dir exists. Extract tarball for other build system compatibility."
...
@@ -145,7 +144,6 @@ rpmbs_copying_built()
...
@@ -145,7 +144,6 @@ rpmbs_copying_built()
done
done
fi
fi
fi
fi
fi
}
}
if
is_girar_name
$1
;
then
if
is_girar_name
$1
;
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