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
f556b5d7
Commit
f556b5d7
authored
Jun 12, 2019
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
copy: allow package list
parent
82bfa826
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
10 deletions
+21
-10
gitask
bin/gitask
+21
-10
No files found.
bin/gitask
View file @
f556b5d7
...
@@ -103,17 +103,28 @@ if [ "$1" = "quota" ] ; then
...
@@ -103,17 +103,28 @@ if [ "$1" = "quota" ] ; then
fi
fi
if
[
"
$1
"
=
"copy"
]
;
then
if
[
"
$1
"
=
"copy"
]
;
then
shift
shift
PACKAGE
=
"
$1
"
PACKAGELIST
=
''
shift
while
[
-n
"
$1
"
]
;
do
shift
# to
[
"
$1
"
=
"to"
]
&&
break
TARGET
=
"
$1
"
PACKAGELIST
=
"
$PACKAGELIST
$1
"
shift
shift
FROMSTR
=
''
done
[
"
$1
"
=
"from"
]
&&
FROMSTR
=
"
$1
$2
"
[
"
$1
"
=
"to"
]
||
fatal
"missed 'to' in your command"
shift
# to
TARGET
=
"
$1
"
shift
FROMSTR
=
''
[
"
$1
"
=
"from"
]
&&
FROMSTR
=
"
$1
$2
"
[
-n
"
$PACKAGELIST
"
]
||
fatal
"no packages"
docmd ssh
$GEARHOST
task new
$TARGET
docmd ssh
$GEARHOST
task new
$TARGET
TASK
=
"
$(
get_last
)
"
TASK
=
"
$(
get_last
)
"
docmd ssh
$GEARHOST
task add
$TASK
copy
$PACKAGE
$FROMSTR
for
PACKAGE
in
$PACKAGELIST
;
do
docmd ssh
$GEARHOST
task add
$TASK
copy
$PACKAGE
$FROMSTR
done
docmd ssh
$GEARHOST
task run
$TASK
docmd ssh
$GEARHOST
task run
$TASK
exit
exit
fi
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