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
df4d35b9
Commit
df4d35b9
authored
Jan 31, 2013
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmrb: allow use with version only, cleanup
parent
343b11f6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
12 deletions
+16
-12
rpmrb
bin/rpmrb
+16
-12
No files found.
bin/rpmrb
View file @
df4d35b9
#!/bin/sh
# 2006, 2008 (c) Etersoft www.etersoft.ru
# 2006, 2008
, 2013
(c) Etersoft www.etersoft.ru
# Author: Vitaly Lipatov <lav@etersoft.ru>
# Public domain
#
# Обновляет версию пакета, получает исходники,
# собирает, устанавливает на тестирование и выкладывает новую версию пакета:
# rpmrb спек версия [релиз]
# собирает, устанавливает на тестирование и выкладывает новую версию пакета.
# версия может быть указана как 2.6.1 (полная), 2.6 (major) или .1 (minor)
# load common functions, compatible with local and installed script
.
`
dirname
$0
`
/../share/eterbuild/functions/common
load_mod spec git
if
[
"
$1
"
=
"-h"
]
;
then
echog
"rpmrb - update spec to vermajor.verminor version, build %rel release"
echog
"Usage: rpmrb [spec] [vermajor][.verminor] [rel]"
echog
"Example:"
echog
"
$
rpmrb [name.spec] 22.6 alt2"
echog
"
$
rpmrb 1.2.3"
exit
0
fi
REMOTE
=
if
[
"
$1
"
=
"-r"
]
;
then
REMOTE
=
$1
...
...
@@ -21,19 +29,15 @@ fi
set_girar_host
$1
&&
shift
SPEC
=
$1
VER
=
$2
# allow run without spec, version only
[
-r
"
$SPEC
"
]
&&
[
-n
"
$VER
"
]
&&
shift
VER
=
$1
# need for rpmgs
GSSETRELEASE
=
$
3
GSSETRELEASE
=
$
2
test
-n
"
$GSSETRELEASE
"
||
GSSETRELEASE
=
alt1
export
GSSETRELEASE
if
[
"
$1
"
=
"-h"
]
;
then
echog
"rpmrb - update spec to vermajor.verminor version, build %rel release"
echog
"Usage: rpmrb spec [vermajor][.verminor] [rel]"
echog
"Example: rpmrb name.spec 22.6 alt2"
exit
0
fi
test
-f
"
$SPEC
"
||
SPEC
=
$(
get_gear_spec
)
docmd
$ETERBUILDBIN
/rpmgs
$SPEC
$VER
||
fatal
"Error with get source"
...
...
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