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
bc85a420
Commit
bc85a420
authored
Feb 19, 2020
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gita add rewrite, add two arg support for add repo
parent
57a21fb3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
20 deletions
+17
-20
gitask
bin/gitask
+17
-20
No files found.
bin/gitask
View file @
bc85a420
...
...
@@ -157,28 +157,25 @@ if [ "$1" = "add" ] ; then
TASK
=
"
$(
get_last
)
"
ADDCMD
=
"
$2
"
shift
2
else
fatal
"don't support
$1
$2
command"
fi
# allow package list for $ADDCMDLIST commands
if
[
-n
"
$ADDCMD
"
]
;
then
PACKAGELIST
=
''
while
[
-n
"
$1
"
]
;
do
PACKAGELIST
=
"
$PACKAGELIST
$1
"
shift
done
[
-n
"
$PACKAGELIST
"
]
||
fatal
"no packages"
for
PACKAGE
in
$PACKAGELIST
;
do
ST
=
"
$(
get_subtask
$TASK
$PACKAGE
)
"
if
[
-n
"
$ST
"
]
;
then
info
"
$PACKAGE
already present in the task
$TASK
as subtask
$ST
, replacing ..."
docmd ssh
$GEARHOST
task delsub
$TASK
$ST
[
-n
"
$SUBTASK
"
]
||
SUBTASK
=
"
$ST
"
fi
docmd ssh
$GEARHOST
task add
$TASK
$SUBTASK
$ADDCMD
$PACKAGE
done
exit
fi
[
-n
"
$1
"
]
||
fatal
"no packages"
while
[
-n
"
$1
"
]
;
do
PACKAGE
=
"
$1
"
[
"
$ADDCMD
"
=
"repo"
]
&&
PACKAGE
=
"
$1
$2
"
&&
shift
shift
ST
=
"
$(
get_subtask
$TASK
$PACKAGE
)
"
if
[
-n
"
$ST
"
]
;
then
info
"
$PACKAGE
already present in the task
$TASK
as subtask
$ST
, replacing ..."
docmd ssh
$GEARHOST
task delsub
$TASK
$ST
[
-n
"
$SUBTASK
"
]
||
SUBTASK
=
"
$ST
"
fi
docmd ssh
$GEARHOST
task add
$TASK
$SUBTASK
$ADDCMD
$PACKAGE
done
exit
fi
if
[
"
$1
"
=
"show"
]
;
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