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
e6be9bc3
Commit
e6be9bc3
authored
Jan 26, 2016
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
detect MENV by current ALT Linux version, fix transfer target repo from rpmbp to rpmbsh
parent
129fb836
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
7 additions
and
13 deletions
+7
-13
loginhsh
bin/loginhsh
+1
-0
rpmbph
bin/rpmbph
+1
-3
rpmbsh
bin/rpmbsh
+3
-1
rpmgs
bin/rpmgs
+0
-1
alt
share/eterbuild/functions/alt
+1
-4
common
share/eterbuild/functions/common
+1
-0
config
share/eterbuild/functions/config
+0
-4
No files found.
bin/loginhsh
View file @
e6be9bc3
...
@@ -75,6 +75,7 @@ LISTRPMARGS=$@
...
@@ -75,6 +75,7 @@ LISTRPMARGS=$@
parse_cmd_pre
"
$@
"
--
parse_cmd_pre
"
$@
"
--
mygetopts
$LISTARGS
mygetopts
$LISTARGS
# see functions/alt:set_binaryrepo() for BINARYREPONAME
# see functions/alt:set_binaryrepo() for BINARYREPONAME
set_binaryrepo
$MENV
set_binaryrepo
$MENV
...
...
bin/rpmbph
View file @
e6be9bc3
...
@@ -158,8 +158,6 @@ if [ "$PKGVENDOR" = "alt" ] && is_gear $SPECDIR ; then
...
@@ -158,8 +158,6 @@ if [ "$PKGVENDOR" = "alt" ] && is_gear $SPECDIR ; then
exit
$?
exit
$?
fi
fi
unset
MENV MENVARG
# handle src.rpm and spec both, LISTBUILT - result with full paths to src.rpms
# handle src.rpm and spec both, LISTBUILT - result with full paths to src.rpms
pack_src_rpm
$LISTNAMES
pack_src_rpm
$LISTNAMES
...
@@ -179,7 +177,7 @@ for i in $LISTBUILT ; do
...
@@ -179,7 +177,7 @@ for i in $LISTBUILT ; do
test
-f
"
$SPECNAME
"
||
fatal
"Spec
$SPECNAME
is not found"
test
-f
"
$SPECNAME
"
||
fatal
"Spec
$SPECNAME
is not found"
docmd
$ETERBUILDBIN
/rpmbps
-b
$BINARYREPO
$SPECNAME
docmd
$ETERBUILDBIN
/rpmbps
-b
$BINARYREPO
$SPECNAME
docmd
$BUILDCOMMAND
$LISTRPMARGS
$UPLOADARG
$SPECNAME
||
fatal
"Can't build"
docmd
$BUILDCOMMAND
-b
$BINARYREPO
$LISTRPMARGS
$UPLOADARG
$SPECNAME
||
fatal
"Can't build"
uni_rpmrm
$SPECNAME
||
true
uni_rpmrm
$SPECNAME
||
true
done
done
...
...
bin/rpmbsh
View file @
e6be9bc3
...
@@ -37,12 +37,14 @@ phelp()
...
@@ -37,12 +37,14 @@ phelp()
echog
" -s sign (and move to dir ETERDESTSRPM if defined) after build"
echog
" -s sign (and move to dir ETERDESTSRPM if defined) after build"
echog
" -t make temporary commit before build (rpmbb like behavior)"
echog
" -t make temporary commit before build (rpmbb like behavior)"
echog
" -l lazy cleanup (clean before build, not after)"
echog
" -l lazy cleanup (clean before build, not after)"
echog
" -b REPONAME binary repository name (4.1, p5, t6 and so on)"
}
}
while
getopts
:ht opt
;
do
while
getopts
:ht
b:
opt
;
do
case
$opt
in
case
$opt
in
h
)
phelp
;
exit
0
;;
h
)
phelp
;
exit
0
;;
t
)
COMMIT
=
"--commit"
;;
t
)
COMMIT
=
"--commit"
;;
b
)
BINARYREPONAME
=
$OPTARG
;;
+?
)
echog
"
$name
: options should not be preceded by a '+'."
1>&2
;
exit
2
;;
+?
)
echog
"
$name
: options should not be preceded by a '+'."
1>&2
;
exit
2
;;
# ?) echog "$name: $OPTARG: bad option. Use -h for help." 1>&2 ; exit 2;;
# ?) echog "$name: $OPTARG: bad option. Use -h for help." 1>&2 ; exit 2;;
?
)
OPTIND
=
$((
OPTIND-1
))
;
break
;
?
)
OPTIND
=
$((
OPTIND-1
))
;
break
;
...
...
bin/rpmgs
View file @
e6be9bc3
...
@@ -163,7 +163,6 @@ gear_update_from_tarball()
...
@@ -163,7 +163,6 @@ gear_update_from_tarball()
fatal
"can't import tarball '
$TARBALL
'"
fatal
"can't import tarball '
$TARBALL
'"
}
}
parse_cmd_pre_spec
"
$@
"
parse_cmd_pre_spec
"
$@
"
mygetopts
$LISTARGS
mygetopts
$LISTARGS
...
...
share/eterbuild/functions/alt
View file @
e6be9bc3
...
@@ -59,12 +59,9 @@ get_type_by_current_branch()
...
@@ -59,12 +59,9 @@ get_type_by_current_branch()
# set BYNARYREPO var by MENV in arg (M70)
# set BYNARYREPO var by MENV in arg (M70)
set_binaryrepo
()
set_binaryrepo
()
{
{
BINARYREPO
=
"sisyphus"
if
[
-n
"
$BINARYREPONAME
"
]
;
then
if
[
-n
"
$BINARYREPONAME
"
]
;
then
BINARYREPO
=
"
$BINARYREPONAME
"
BINARYREPO
=
"
$BINARYREPONAME
"
MENV
=
"
$(
get_altdistr_mod
$BINARYREPO
)
"
MENV
=
"
$(
get_altdistr_mod
$BINARYREPO
)
"
MENVARG
=
"-
$MENV
"
# fill with updated $MENV
# fill with updated $MENV
detect_target_env
detect_target_env
return
return
...
@@ -74,8 +71,8 @@ set_binaryrepo()
...
@@ -74,8 +71,8 @@ set_binaryrepo()
BINARYREPO
=
$(
get_altdistr_version
$MENV
)
BINARYREPO
=
$(
get_altdistr_version
$MENV
)
fi
fi
# override by the function arg
test
-z
"
$1
"
&&
return
test
-z
"
$1
"
&&
return
BINARYREPO
=
"
`
get_altdistr_version
$1
`
"
BINARYREPO
=
"
`
get_altdistr_version
$1
`
"
return
0
return
0
...
...
share/eterbuild/functions/common
View file @
e6be9bc3
...
@@ -356,6 +356,7 @@ set_target_pkg_env()
...
@@ -356,6 +356,7 @@ set_target_pkg_env()
PKGFORMAT
=
$(
$DISTRVENDOR
-p
"
$DISTRNAME
"
)
PKGFORMAT
=
$(
$DISTRVENDOR
-p
"
$DISTRNAME
"
)
PKGVENDOR
=
$(
$DISTRVENDOR
-s
"
$DISTRNAME
"
)
PKGVENDOR
=
$(
$DISTRVENDOR
-s
"
$DISTRNAME
"
)
RPMVENDOR
=
$(
$DISTRVENDOR
-n
"
$DISTRNAME
"
)
RPMVENDOR
=
$(
$DISTRVENDOR
-n
"
$DISTRNAME
"
)
[
-n
"
$MENV
"
]
||
MENV
=
"
$(
get_altdistr_mod
"
$DISTRVERSION
"
)
"
}
}
# We believe that follow vars correctly in any way:
# We believe that follow vars correctly in any way:
...
...
share/eterbuild/functions/config
View file @
e6be9bc3
...
@@ -55,10 +55,6 @@ EXAMPLEALTDISTRVERSION="p7"
...
@@ -55,10 +55,6 @@ EXAMPLEALTDISTRVERSION="p7"
# FIXME: obsoleted
# FIXME: obsoleted
CURRENTBRANCHNAME
=
"M70"
CURRENTBRANCHNAME
=
"M70"
# Build for Sisyphus by default
# TODO: REMOVE IT
MENV
=
SS
[
-n
"
$DEBUG
"
]
&&
HASHERARG
=
"-v
$HASHERARG
"
[
-n
"
$DEBUG
"
]
&&
HASHERARG
=
"-v
$HASHERARG
"
#SSH_KEYFILE=~/.ssh/id_dsa
#SSH_KEYFILE=~/.ssh/id_dsa
...
...
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