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
15f85d16
Commit
15f85d16
authored
Aug 28, 2021
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gitask: add Add support (and & run)
parent
e3d915e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
gitask
bin/gitask
+7
-3
No files found.
bin/gitask
View file @
15f85d16
#!/bin/sh
# 2017, 2018, 2019, 2020 (c) Etersoft https://etersoft.ru
# 2017, 2018, 2019, 2020
, 2021
(c) Etersoft https://etersoft.ru
# Author: Vitaly Lipatov <lav@etersoft.ru>
# Public domain
...
...
@@ -24,6 +24,7 @@ if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
echo
" add del package [package2] - add package remove command"
echo
" add rebuild package [package2] - add package rebuild"
echo
" add --help - show task add help"
echo
" Add <args> - add and run the task"
echo
" task --help - show task help"
echo
" share NNNN [enable] - share task NNNN"
echo
" deps NNNN add XXXX - add deps from XXXX to task NNNN"
...
...
@@ -68,7 +69,8 @@ get_subtask()
ssh
$GEARHOST
task show
$1
| egrep
"(/
$2
.git|:package=
$2$)
"
|
sed
-e
"s|^
\(
[0-9]*
\)
:.*|
\1
|g"
}
# TODO: acl
NEXTCOMMAND
=
''
$EPMCMD
assure girar-show girar-utils
...
...
@@ -223,7 +225,8 @@ if [ "$1" = "copy" ] ; then
exit
fi
if
[
"
$1
"
=
"add"
]
;
then
if
[
"
$1
"
=
"add"
]
||
[
"
$1
"
=
"Add"
]
;
then
[
"
$1
"
=
"Add"
]
&&
NEXTCOMMAND
=
"run"
SUBTASK
=
''
ADDCMD
=
''
ADDCMDLIST
=
"del copy repo rebuild"
...
...
@@ -259,6 +262,7 @@ if [ "$1" = "add" ] ; then
fi
docmd ssh
$GEARHOST
task add
$TASK
$SUBTASK
$ADDCMD
$PACKAGE
done
[
-n
"
$NEXTCOMMAND
"
]
&&
$0
$NEXTCOMMAND
exit
fi
...
...
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