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
3cd899e7
Commit
3cd899e7
authored
Nov 16, 2009
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move release_check to functions/alt
parent
4565e14c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
25 deletions
+28
-25
rpmbs
bin/rpmbs
+3
-24
rpmgp
bin/rpmgp
+1
-1
alt
share/eterbuild/functions/alt
+24
-0
No files found.
bin/rpmbs
View file @
3cd899e7
...
...
@@ -18,7 +18,7 @@
# load common functions, compatible with local and installed script
.
`
dirname
$0
`
/../share/eterbuild/functions/common
load_mod rpm tarball
load_mod rpm tarball
alt
SIGN
=
UPLOADNOW
=
...
...
@@ -80,27 +80,6 @@ LISTRPMARGS=$@
}
# TODO: include in sisyphus_check
# , MENV
function
release_check
()
{
if
[
"
$MENV
"
=
"SS"
]
||
[
"
$MENV
"
=
"DD"
]
;
then
for
i
in
$@
;
do
if
[
-z
"
${
i
/*alt[0-9].M[0-9][0-9]*/
}
"
]
;
then
#
fatal
"Incorrect release in
$i
package: was prepared for Sisyphus"
fi
done
return
fi
for
i
in
$@
;
do
if
[
-n
"
${
i
/*alt[0-9].
$MENV
*/
}
"
]
;
then
#
fatal
"Incorrect release in
$i
package: was prepared for
$MENV
"
fi
done
}
# create tag according to package release
check_gear_and_tag
()
{
...
...
@@ -182,7 +161,7 @@ fi
if
[
-n
"
$UPLOADNOW
"
]
&&
is_gear
$SPECDIR
;
then
echo
"Run with gear repo..."
build_rpms_name
"
$LISTNAMES
"
release_check
pkg_
release_check
check_gear_and_tag
$ETERBUILDBIN
/gpush
$BASENAME
||
fatal
"Git push via gpush failed. Possibly you need to run ginit for create remote repo."
TAG
=
$VERSION
-
$RELEASE
...
...
@@ -243,7 +222,7 @@ if [ -z "$SIGN" ]; then
fi
# Sign src.rpm and upload it
release_check
$LISTBUILT
pkg_
release_check
$LISTBUILT
if
[
-r
"
$LISTBUILT
"
]
;
then
check_gear_and_tag
...
...
bin/rpmgp
View file @
3cd899e7
...
...
@@ -223,7 +223,7 @@ test -z "$LISTARGS" && fatal "Please run with spec/package name"
if
[
-n
"
$INSTALLBINARY
"
]
;
then
parse_cmd_pre
"
$@
"
pack_src_rpm
$LISTRPMARGS
echog
"Running apt-get for install needed packages for
$LISTBUILT
"
echog
"Running apt-get
build-dep
for install needed packages for
$LISTBUILT
"
# FIXME: ALT Specific
$SUDO
apt-get build-dep
$LISTBUILT
exit
0
...
...
share/eterbuild/functions/alt
View file @
3cd899e7
...
...
@@ -79,3 +79,27 @@ get_altdistr_mod()
{
echo
"
$1
"
|
sed
-e
"s|
\(
[0-9]
\)\.\(
[0-9]
\)
|M
\1\2
|g"
|
sed
-e
"s|Sisyphus|SS|g"
}
# TODO: include in sisyphus_check
# , MENV
function
pkg_release_check
()
{
local
STREL
=
alt
[
-z
"
$KORINFTARGETRELEASE
"
]
||
STREL
=
$KORINFTARGETRELEASE
if
[
"
$MENV
"
=
"SS"
]
||
[
"
$MENV
"
=
"DD"
]
;
then
for
i
in
$@
;
do
if
[
-z
"
${
i
/*
$STREL
[0-9].M[0-9][0-9]*/
}
"
]
;
then
#
fatal
"Incorrect release in
$i
package: was prepared for Sisyphus"
fi
done
return
fi
for
i
in
$@
;
do
if
[
-n
"
${
i
/*
$STREL
[0-9].
$MENV
*/
}
"
]
;
then
#
fatal
"Incorrect release in
$i
package: was prepared for
$MENV
"
fi
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