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
8a460a14
Commit
8a460a14
authored
Aug 04, 2015
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set GITHOST and GEARHOST and use GEARHOST
parent
60f9982b
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
15 deletions
+30
-15
gacl
bin/gacl
+6
-6
rpmbs
bin/rpmbs
+6
-6
git
share/eterbuild/functions/git
+15
-0
spec
share/eterbuild/functions/spec
+2
-2
check_publish.sh
tools/check_publish.sh
+1
-1
No files found.
bin/gacl
View file @
8a460a14
...
...
@@ -12,7 +12,7 @@ mygetopts()
{
if
[
"
$1
"
=
"-h"
]
;
then
echog
"gacl - acl control for gear repo in
$G
IR
ARHOST
"
echog
"gacl - acl control for gear repo in
$G
E
ARHOST
"
echo
echog
"Usage: gacl [GIRAR] [-b REPONAME] [package] command [params]"
echo
...
...
@@ -78,13 +78,13 @@ set_binaryrepo $MENV
case
"
$COMMAND
"
in
"add"
|
"del"
)
[
-n
"
$PARAM
"
]
||
fatal
"Param for command is missed"
echo
"
$G
IR
ARHOST
:
$BINARYREPO
ACL for
$PROJECTNAME
:
$COMMAND
$PARAM
..."
docmd ssh
$G
IR
ARHOST
acl
$BINARYREPO
$PROJECTNAME
$COMMAND
$PARAM
echo
"
$G
E
ARHOST
:
$BINARYREPO
ACL for
$PROJECTNAME
:
$COMMAND
$PARAM
..."
docmd ssh
$G
E
ARHOST
acl
$BINARYREPO
$PROJECTNAME
$COMMAND
$PARAM
;;
"show"
)
showcmd ssh
$G
IR
ARHOST
acl
$BINARYREPO
$PROJECTNAME
$COMMAND
echo
-n
"
$G
IR
ARHOST
:
$BINARYREPO
ACL for "
ssh
$G
IR
ARHOST
acl
$BINARYREPO
$PROJECTNAME
$COMMAND
showcmd ssh
$G
E
ARHOST
acl
$BINARYREPO
$PROJECTNAME
$COMMAND
echo
-n
"
$G
E
ARHOST
:
$BINARYREPO
ACL for "
ssh
$G
E
ARHOST
acl
$BINARYREPO
$PROJECTNAME
$COMMAND
echo
;;
*
)
...
...
bin/rpmbs
View file @
8a460a14
...
...
@@ -240,15 +240,15 @@ if [ -n "$UPLOADNOW" ] && is_gear $SPECDIR ; then
# TODO: add check for repo (as in rpmgp) and run ginit if needed
docmd gpush
$GIRARHOST
$FORCE
||
fatal
"gpush failed. Possibly you need to run '
\$
ginit
$GIRARHOST
' for create remote repo."
echo
echo
"Run build
$PROJECTNAME
at
$G
IR
ARHOST
"
echo
"Run build
$PROJECTNAME
at
$G
E
ARHOST
"
if
[
-n
"
$PREPARETASK
"
]
;
then
docmd ssh
$G
IR
ARHOST
task add
$TASKNUMBER
repo
$PROJECTNAME
$TAG
2>&1 |
tee
$RPMDIR
/uploaded.log.tmp
docmd ssh
$G
E
ARHOST
task add
$TASKNUMBER
repo
$PROJECTNAME
$TAG
2>&1 |
tee
$RPMDIR
/uploaded.log.tmp
else
docmd ssh
$G
IR
ARHOST
build
$(
usearg
-b
$BINARYREPO
sisyphus
)
$(
usearg
-p
$POCKET
)
$PROJECTNAME
$TAG
2>&1 |
tee
$RPMDIR
/uploaded.log.tmp
docmd ssh
$G
E
ARHOST
build
$(
usearg
-b
$BINARYREPO
sisyphus
)
$(
usearg
-p
$POCKET
)
$PROJECTNAME
$TAG
2>&1 |
tee
$RPMDIR
/uploaded.log.tmp
fi
# FIXME: incorporate
cat
$RPMDIR
/uploaded.log.tmp |
grep
task |
head
-n2
|
tail
-n1
>>
$RPMDIR
/uploaded.log
echo
" run
$TASKNUMBER
task
$PROJECTNAME
with tag
$TAG
at
$G
IR
ARHOST
(in
$BINARYREPO
) at
`
date
"+%c"
`
"
>>
$RPMDIR
/uploaded.log
echo
" run
$TASKNUMBER
task
$PROJECTNAME
with tag
$TAG
at
$G
E
ARHOST
(in
$BINARYREPO
) at
`
date
"+%c"
`
"
>>
$RPMDIR
/uploaded.log
rm
-f
$RPMDIR
/uploaded.log.tmp
exit
fi
...
...
@@ -334,10 +334,10 @@ for i in $LISTBUILT ; do
done
if
[
-n
"
$PREPARETASK
"
]
;
then
echo
"Add
$TASKLIST
to task
$TASKNUMBER
"
docmd ssh
$G
IR
ARHOST
task add
$TASKNUMBER
$TASKLIST
2>&1 |
tee
$RPMDIR
/uploaded.log.tmp
docmd ssh
$G
E
ARHOST
task add
$TASKNUMBER
$TASKLIST
2>&1 |
tee
$RPMDIR
/uploaded.log.tmp
else
echo
"Create task for
$TASKLIST
"
docmd ssh
$G
IR
ARHOST
build
$(
usearg
-b
$BINARYREPO
sisyphus
)
$TASKLIST
2>&1 |
tee
$RPMDIR
/uploaded.log.tmp
docmd ssh
$G
E
ARHOST
build
$(
usearg
-b
$BINARYREPO
sisyphus
)
$TASKLIST
2>&1 |
tee
$RPMDIR
/uploaded.log.tmp
fi
# FIXME: parse and incorporate
...
...
share/eterbuild/functions/git
View file @
8a460a14
...
...
@@ -70,11 +70,24 @@ is_one_girar_name()
[
-n
"
$RES
"
]
}
# TODO: check the same code in giter
set_gear_host
()
{
assert_var GIRARHOST
GITHOST
=
"
$GIRARHOST
"
GEARHOST
=
"
$GITHOST
"
[
"
$GEARHOST
"
=
"git.alt"
]
&&
GEARHOST
=
"gear.alt"
return
0
}
# Try autodetect GIRARHOST. Return true, if get it from arg (need for shift args)
set_girar_host
()
{
if
is_girar_name
"
$1
"
;
then
GIRARHOST
=
"
$1
"
set_gear_host
return
0
fi
...
...
@@ -83,6 +96,7 @@ set_girar_host()
if
is_one_girar_name
"
$REMOTELIST
"
;
then
# use one target if it one
GIRARHOST
=
"
$REMOTELIST
"
set_gear_host
return
1
fi
...
...
@@ -92,6 +106,7 @@ set_girar_host()
#[ -n "$GIRARHOST" ] || fatal "Can't get default girar alias (like git.alt) from ~/.ssh/config"
fi
set_gear_host
return
1
}
...
...
share/eterbuild/functions/spec
View file @
8a460a14
...
...
@@ -61,9 +61,9 @@ get_numrelease()
get_default_txtrelease
()
{
# assert GI
RAR
HOST
# assert GI
T
HOST
# TODO: check for git.alt in ~/.ssh/config?
echo
${
GI
RAR
HOST
/git./
}
echo
${
GI
T
HOST
/git./
}
}
# get alt from alt11
...
...
tools/check_publish.sh
View file @
8a460a14
...
...
@@ -86,7 +86,7 @@ for i in $SPECLIST ; do
remove_if_empty
$i
.GIT.PUBLISHED
if
[
-r
"
$i
.GIT.PUBLISHED"
]
;
then
ssh
$G
IR
ARHOST
acl sisyphus
$PKGNAME
show 2>>
$i
.GIT.PUBLISHED
ssh
$G
E
ARHOST
acl sisyphus
$PKGNAME
show 2>>
$i
.GIT.PUBLISHED
fi
#grep " $USER\$" $i.acl
...
...
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