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
9b067e18
Commit
9b067e18
authored
Nov 15, 2017
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add support for ga/galt in addition to git.alt (ge for git.eter)
parent
9f85a2e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
git
share/eterbuild/functions/git
+19
-2
No files found.
share/eterbuild/functions/git
View file @
9b067e18
...
@@ -52,6 +52,22 @@ get_remote_git_list()
...
@@ -52,6 +52,22 @@ get_remote_git_list()
done
done
}
}
normalize_girar_name
()
{
case
"
$1
"
in
ga|galt
)
echo
"git.alt"
;;
ge|geter
)
echo
"git.eter"
;;
*
)
echo
"
$1
"
;;
esac
return
0
}
# Check if $1 like git.alt or git.eter, git.something
# Check if $1 like git.alt or git.eter, git.something
is_girar_name
()
is_girar_name
()
{
{
...
@@ -85,8 +101,9 @@ set_gear_host()
...
@@ -85,8 +101,9 @@ set_gear_host()
# Try autodetect GIRARHOST. Return true, if get it from arg (need for shift args)
# Try autodetect GIRARHOST. Return true, if get it from arg (need for shift args)
set_girar_host
()
set_girar_host
()
{
{
if
is_girar_name
"
$1
"
;
then
local
GN
=
$(
normalize_girar_name
"
$1
"
)
GIRARHOST
=
"
$1
"
if
is_girar_name
"
$GN
"
;
then
GIRARHOST
=
"
$GN
"
set_gear_host
set_gear_host
return
0
return
0
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