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
097cbed0
Commit
097cbed0
authored
Jul 10, 2009
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmpub: initial version of project publish script
parent
cde33919
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
0 deletions
+50
-0
rpmpub
bin/rpmpub
+50
-0
No files found.
bin/rpmpub
0 → 100755
View file @
097cbed0
#!/bin/sh
# Script to publish project as src.rpm on project ftp directory
NEEDETERBUILD
=
162
# You can use this script separately in your project with
#. /usr/share/eterbuild/eterbuild
# instead follow loader
# load common functions, compatible with local and installed script
.
`
dirname
$0
`
/../share/eterbuild/functions/common
load_mod spec rpm etersoft
if
[
"
$1
"
=
"-h"
]
;
then
echog
"rpmpub - Etersoft specific script for publish gear repo to target ftp dir"
echog
"Usage: rpmpub [-r VERSION ] [TARGET]"
echog
"You can set default target dir in UPLOADDIR variable in config file"
exit
0
fi
SPECNAME
=
$(
basename
$(
pwd
))
.spec
if
[
!
-r
$SPECNAME
]
;
then
fatal
"Spec
$SPECNAME
does not found in the current dir"
fi
# publish to unstable by default
ALPHA
=
unstable
if
[
"
$1
"
=
"-r"
]
;
then
ALPHA
=
$2
shift
2
fi
#ETERDESTSRPM=/var/ftp/pub/Etersoft/CIFS@Etersoft/$VERSION/sources
ETERDESTSRPM
=
$1
if
[
-z
"
$ETERDESTSRPM
"
]
;
then
ETERDESTSRPM
=
$(
get_etersoft_srpm_path
$SPECNAME
$ALPHA
)
else
fatal
"run with exists dir to publish src.rpm project (I checked
$ETERDESTSRPM
, it is nonexist)"
fi
export
ETERDESTSRPM
# just for your information: rpmbs supports ssh-like target
$ETERBUILDBIN
/rpmbs
-s
$SPECNAME
||
fatal
"Can't build SRPMS"
# set last link (assume PROJECT/VERSION/sources dir structure)
set_last_link
$ETERDESTSRPM
/..
$(
get_version
$SPECNAME
)
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