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
1c392772
Commit
1c392772
authored
Oct 05, 2010
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmpub: add support for -f key (force for rpmgs)
parent
73debee0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
rpmpub
bin/rpmpub
+8
-3
No files found.
bin/rpmpub
View file @
1c392772
...
@@ -13,8 +13,9 @@ load_mod spec rpm etersoft
...
@@ -13,8 +13,9 @@ load_mod spec rpm etersoft
if
[
"
$1
"
=
"-h"
]
;
then
if
[
"
$1
"
=
"-h"
]
;
then
echog
"rpmpub - Etersoft specific script for publish gear repo to target ftp dir as src.rpm"
echog
"rpmpub - Etersoft specific script for publish gear repo to target ftp dir as src.rpm"
echog
"Usage: rpmpub [-r PROJECTVERSION ] [SPEC] [TARGETDIR]"
echog
"Usage: rpmpub [-
f] [-
r PROJECTVERSION ] [SPEC] [TARGETDIR]"
echog
"Options:"
echog
"Options:"
echog
" -f - force set tag"
echog
" -r PROJECTVERSION - set other project version (PROJECTVERSION/sources)"
echog
" -r PROJECTVERSION - set other project version (PROJECTVERSION/sources)"
echog
" TARGETDIR - copy signed src.rpm package to TARGETDIR (f.i., /tmp/some_version/sources)"
echog
" TARGETDIR - copy signed src.rpm package to TARGETDIR (f.i., /tmp/some_version/sources)"
echog
"By default used path from Source: spec field. "
echog
"By default used path from Source: spec field. "
...
@@ -22,7 +23,11 @@ if [ "$1" = "-h" ]; then
...
@@ -22,7 +23,11 @@ if [ "$1" = "-h" ]; then
exit
0
exit
0
fi
fi
FORCE
=
if
[
"
$1
"
=
"-f"
]
;
then
FORCE
=
$1
shift
fi
# publish to unstable by default
# publish to unstable by default
ALPHA
=
ALPHA
=
...
@@ -61,7 +66,7 @@ if [ -n "$ALPHA" ] && [ ! -d "$ETERDESTSRPM" ] && [ -d "$PREVPATH" ] ; then
...
@@ -61,7 +66,7 @@ if [ -n "$ALPHA" ] && [ ! -d "$ETERDESTSRPM" ] && [ -d "$PREVPATH" ] ; then
fi
fi
# just for your information: rpmbs supports ssh-like target
# just for your information: rpmbs supports ssh-like target
$ETERBUILDBIN
/rpmbs
-s
$SPECNAME
||
fatal
"Can't build SRPMS"
$ETERBUILDBIN
/rpmbs
$FORCE
-s
$SPECNAME
||
fatal
"Can't build SRPMS"
# if known target and last link already exists
# if known target and last link already exists
if
[
-n
"
$ALPHA
"
]
&&
[
-L
"
$ETERDESTSRPM
/../../last"
]
;
then
if
[
-n
"
$ALPHA
"
]
&&
[
-L
"
$ETERDESTSRPM
/../../last"
]
;
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