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
e7a8c5f8
Commit
e7a8c5f8
authored
Jul 15, 2009
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmpub / get_etersoft_srcrpm behaviour
parent
956fb7f9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
rpmpub
bin/rpmpub
+3
-2
etersoft
share/eterbuild/functions/etersoft
+8
-2
No files found.
bin/rpmpub
View file @
e7a8c5f8
...
...
@@ -23,7 +23,7 @@ fi
# publish to unstable by default
ALPHA
=
unstable
ALPHA
=
if
[
"
$1
"
=
"-r"
]
;
then
ALPHA
=
$2
shift
2
...
...
@@ -44,7 +44,8 @@ fi
#ETERDESTSRPM=/var/ftp/pub/Etersoft/CIFS@Etersoft/$VERSION/sources
ETERDESTSRPM
=
$1
if
[
-z
"
$ETERDESTSRPM
"
]
;
then
ETERDESTSRPM
=
$(
get_etersoft_srpm_path
$SPECNAME
$ALPHA
)
ETERDESTSRPM
=
$(
get_etersoft_srpm_path
$SPECNAME
"
$ALPHA
"
)
echo
"Prepare src.rpm to
$ETERDESTSRPM
"
else
test
-d
"
$ETERDESTSRPM
"
||
fatal
"You need run with exists dir to publish src.rpm project (I checked
$ETERDESTSRPM
, it is nonexist)"
fi
...
...
share/eterbuild/functions/etersoft
View file @
e7a8c5f8
...
...
@@ -33,11 +33,17 @@ get_etersoft_srpm_path()
# translate ftp to local path
SOURCE
=
$(
echo
"
$SOURCEFTP
"
|
sed
-e
"s|.*://.*
$COMPANYFTP
|
$TARGETFTPBASE
|g"
)
# rewrite V.E.R./sources with $ALPHA/sources
# rewrite V.E.R./sources with $ALPHA/sources
if $ALPHA exist
if
[
-n
"
$ALPHA
"
]
;
then
BSOURCE
=
$(
dirname
$SOURCE
)
BNSOURCE
=
$(
basename
$BSOURCE
)
if
[
"
$BNSOURCE
"
=
"last"
]
||
[
"
$BNSOURCE
"
=
"unstable"
]
;
then
SOURCE
=
$(
dirname
$BSOURCE
)
/
$ALPHA
/sources
else
# if run with default arg
ALPHA
=
unstable
BSOURCE
=
$(
dirname
$SOURCE
)
BNSOURCE
=
$(
basename
$BSOURCE
)
if
[
"
$BNSOURCE
"
=
"last"
]
;
then
SOURCE
=
$(
dirname
$BSOURCE
)
/
$ALPHA
/sources
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