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
2a3fb68f
Commit
2a3fb68f
authored
Mar 17, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gitask: add build alias: gita add build <repo> <tag>
parent
f62c6649
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
gitask
bin/gitask
+10
-5
No files found.
bin/gitask
View file @
2a3fb68f
...
...
@@ -21,8 +21,8 @@ if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
echo
" new [branch] - create new task on branch (Sisyphus by default)"
echo
" run [--test-only] [NNNN] [NNNN2] [-m <message>] - run task NNNN"
echo
" commit [NNNN] [NNNN2] [-m <message>] - commit task(s) NNNN, [NNNN2]"
echo
" add [NNNN]
repo
<gear repo> <gear tag> ... - add package build from repo command"
echo
" add [NNNN]
repo
<gear repo>.git=<gear tag> ... - add package build from repo command"
echo
" add [NNNN]
(repo|build)
<gear repo> <gear tag> ... - add package build from repo command"
echo
" add [NNNN]
(repo|build)
<gear repo>.git=<gear tag> ... - add package build from repo command"
echo
" add [NNNN] del package [package2...] - add package remove command"
echo
" add [NNNN] rebuild package [package2...] - add package rebuild"
echo
" add --help - show task add help"
...
...
@@ -232,9 +232,11 @@ if [ "$1" = "copy" ] ; then
[
-n
"
$PACKAGELIST
"
]
||
fatal
"no packages"
showcmd ssh
$GEARHOST
task new
$TARGET
TASK
=
"
$(
ssh
$GEARHOST
task new
$TARGET
|
head
-n1
)
"
||
fatal
# Note: | head hides status
TASK
=
"
$(
ssh
$GEARHOST
task new
$TARGET
|
head
-n1
)
"
[
-n
"
$TASK
"
]
||
fatal
"Empty task"
for
PACKAGE
in
$PACKAGELIST
;
do
docmd ssh
$GEARHOST
task add
$TASK
copy
$PACKAGE
$FROMSTR
docmd ssh
$GEARHOST
task add
$TASK
copy
$PACKAGE
$FROMSTR
||
fatal
done
docmd ssh
$GEARHOST
task run
$TASK
exit
...
...
@@ -244,7 +246,7 @@ if [ "$1" = "add" ] || [ "$1" = "Add" ] ; then
[
"
$1
"
=
"Add"
]
&&
NEXTCOMMAND
=
"run"
SUBTASK
=
''
ADDCMD
=
''
ADDCMDLIST
=
"del copy repo rebuild"
ADDCMDLIST
=
"del copy repo
build
rebuild"
# add TASKNUMBER package
if
is_task_number
"
$2
"
&&
estrlist has
"
$3
"
$ADDCMDLIST
;
then
TASK
=
"
$(
get_task_number
$2
)
"
...
...
@@ -265,7 +267,10 @@ if [ "$1" = "add" ] || [ "$1" = "Add" ] ; then
[
-n
"
$1
"
]
||
fatal
"no packages"
[
"
$ADDCMD
"
=
"build"
]
&&
ADDCMD
=
"repo"
OADDCMD
=
$ADDCMD
while
[
-n
"
$1
"
]
;
do
PACKAGE
=
"
$1
"
if
[
"
$OADDCMD
"
=
"repo"
]
;
then
...
...
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