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
ce0a2d68
Commit
ce0a2d68
authored
Jan 08, 2009
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add support for run rpmgs spec new_version (fix altbug #14397)
parent
04dc61cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
2 deletions
+31
-2
rpmgs
bin/rpmgs
+31
-2
No files found.
bin/rpmgs
View file @
ce0a2d68
...
...
@@ -21,7 +21,7 @@ GETSOURCE=""
LOADLIST
=
"0"
#############################
Usage
=
"Usage:
$name
[-a -r ] spec
...
"
Usage
=
"Usage:
$name
[-a -r ] spec
... | spec new_version
"
function
mygetopts
()
{
name
=
${
0
##*/
}
...
...
@@ -31,6 +31,7 @@ phelp()
{
echog
"
$Descr
"
echog
"
$Usage
"
echog
"You can run rpmgs file.spec new_version for set new version and download it"
echog
"Options:"
echog
" -a - get all source (not only 0)"
echog
" -f - force download (remove source before download)"
...
...
@@ -172,7 +173,21 @@ function print_error()
parse_cmd_pre
"
$@
"
mygetopts
$LISTARGS
#echo $LISTNAMES @ $LISTARGS
test
-z
"
$VERBOSE
"
||
echo
"'
$LISTNAMES
' @ '
$LISTARGS
'"
if
[
-n
"
$LISTARGS
"
]
;
then
if
[
-z
"
${
LISTARGS
/*spec/
}
"
]
;
then
fatal
"run with incorrect filename
$LISTARGS
"
fi
if
[
-f
"
$LISTNAMES
"
]
;
then
fatal
"set version permitted only for one file"
fi
if
[
"
${
LISTARGS
/ /
}
"
!=
"
$LISTARGS
"
]
;
then
fatal
"you run rpmgs with more than one version"
fi
GSSETVERSION
=
$LISTARGS
fi
test
-z
"
$LISTNAMES
"
&&
print_error
for
i
in
$LISTNAMES
...
...
@@ -180,6 +195,19 @@ do
if
[
-n
"
${
i
/*spec/
}
"
]
;
then
print_error
fi
# Set version if needed
if
[
-n
"
$GSSETVERSION
"
]
;
then
CURVER
=
$(
get_version
$i
)
set_version
$i
$GSSETVERSION
if
[
"
$CURVER
"
!=
"
$GSSETVERSION
"
]
;
then
REL
=
alt1
set_release
$i
$REL
echo
"Set new
$GSSETVERSION
-
$REL
version for
$i
"
else
echo
"Version
$GSSETVERSION
already set"
fi
fi
for
nn
in
""
$LOADLIST
do
...
...
@@ -203,6 +231,7 @@ do
fi
echo
"DONE"
popd
# VERSION we get after build_rpms_name
add_changelog_helper
"- new version (
$VERSION
)"
$i
done
done
...
...
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