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
459169ed
Commit
459169ed
authored
Feb 20, 2015
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use get_default_txtrelease where possible
parent
0efd493d
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
20 additions
and
8 deletions
+20
-8
rpmcs
bin/rpmcs
+2
-2
rpmgs
bin/rpmgs
+2
-2
rpmrb
bin/rpmrb
+1
-1
alt
share/eterbuild/functions/alt
+2
-1
buildsrpm
share/eterbuild/functions/buildsrpm
+1
-1
etersoft
share/eterbuild/functions/etersoft
+1
-1
spec
share/eterbuild/functions/spec
+11
-0
No files found.
bin/rpmcs
View file @
459169ed
...
...
@@ -194,8 +194,8 @@ do
fi
# If non alt release, set initial alt release
if
get_release
$i
|
grep
-
v
"^alt"
>
/dev/null
;
then
set_release
$i
"alt1"
if
get_release
$i
|
grep
-
q
-v
"^alt"
&&
get_release
$i
|
grep
-q
-v
"^
$(
get_default_txtrelease
)
"
;
then
reset_release
$i
fi
# If it was PLD spec
...
...
bin/rpmgs
View file @
459169ed
...
...
@@ -243,7 +243,7 @@ do
if
[
-n
"
${
spec
/*spec/
}
"
]
;
then
print_error
fi
set_specdir
$spec
# Set version if needed
...
...
@@ -251,7 +251,7 @@ do
CURVER
=
$(
get_version
$spec
)
set_version
$spec
$GSSETVERSION
if
[
"
$CURVER
"
!=
"
$GSSETVERSION
"
]
;
then
[
-n
"
$GSSETRELEASE
"
]
||
GSSETRELEASE
=
alt
1
[
-n
"
$GSSETRELEASE
"
]
||
GSSETRELEASE
=
$(
get_default_txtrelease
)
1
set_release
$spec
$GSSETRELEASE
echo
"Set new
$GSSETVERSION
-
$GSSETRELEASE
version for
$spec
"
else
...
...
bin/rpmrb
View file @
459169ed
...
...
@@ -35,7 +35,7 @@ SPEC=$1
VER
=
$1
# need for rpmgs
GSSETRELEASE
=
$2
test
-n
"
$GSSETRELEASE
"
||
GSSETRELEASE
=
alt
1
test
-n
"
$GSSETRELEASE
"
||
GSSETRELEASE
=
$(
get_default_txtrelease
)
1
export
GSSETRELEASE
test
-f
"
$SPEC
"
||
SPEC
=
$(
get_gear_spec
)
...
...
share/eterbuild/functions/alt
View file @
459169ed
...
...
@@ -94,8 +94,9 @@ pkg_release_check()
{
# assert MENV
local
STREL
=
$(
get_default_txtrelease
)
# support alt in any case
local
STRELDEF
=
alt
#
FIXME: do we need it?
#
can be set from korinf config
[
-z
"
$KORINFTARGETRELEASE
"
]
||
STREL
=
$KORINFTARGETRELEASE
if
[
"
$MENV
"
=
"SS"
]
||
[
"
$MENV
"
=
"DD"
]
;
then
...
...
share/eterbuild/functions/buildsrpm
View file @
459169ed
...
...
@@ -113,6 +113,6 @@ do
done
LISTBUILT
=
$(
strip_spaces
"
$LISTBUILT
"
)
test
-z
"
$LISTBUILT
"
&&
fatal
"Error: List for build is empty. Check if
file is exist
."
test
-z
"
$LISTBUILT
"
&&
fatal
"Error: List for build is empty. Check if
the file is exists
."
}
share/eterbuild/functions/etersoft
View file @
459169ed
...
...
@@ -33,7 +33,7 @@ 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 if $ALPHA exist
# rewrite V.E.R./sources with $ALPHA/sources if $ALPHA exist
s
if
[
-n
"
$ALPHA
"
]
;
then
BSOURCE
=
$(
dirname
$SOURCE
)
BNSOURCE
=
$(
basename
$BSOURCE
)
...
...
share/eterbuild/functions/spec
View file @
459169ed
...
...
@@ -76,9 +76,20 @@ set_var()
subst
"s|
\(
$2
:
\)
.*
\$
|
\1
$3
|"
$1
}
# Args: spec, new_release
# set release to arg2 or reset numeration if arg2 is empty
set_release
()
{
local
RELEASE
=
$2
[
-n
"
$RELEASE
"
]
||
RELEASE
=
"
$(
get_txtrelease
$1
)
1"
set_var
$1
Release
$RELEASE
}
# Args: spec, new_release
# Set release to arg2 or to the default start value if arg2 is empty
reset_release
()
{
local
RELEASE
=
$2
[
-n
"
$RELEASE
"
]
||
RELEASE
=
"
$(
get_default_txtrelease
)
1"
set_var
$1
Release
$RELEASE
}
...
...
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