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
0d8ffd58
Commit
0d8ffd58
authored
Oct 07, 2010
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
introduce set_girar_host and use it
parent
1ba38790
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
23 additions
and
30 deletions
+23
-30
gacl
bin/gacl
+1
-4
rpmbph
bin/rpmbph
+1
-4
rpmbs
bin/rpmbs
+1
-10
rpmbsh
bin/rpmbsh
+1
-4
rpmgp
bin/rpmgp
+1
-4
rpmrb
bin/rpmrb
+1
-4
git
share/eterbuild/functions/git
+17
-0
No files found.
bin/gacl
View file @
0d8ffd58
...
@@ -6,10 +6,7 @@ load_mod git
...
@@ -6,10 +6,7 @@ load_mod git
test
-r
"
$1
"
&&
fatal
"Do not need any files in params"
test
-r
"
$1
"
&&
fatal
"Do not need any files in params"
if
is_girar_name
$1
;
then
set_girar_host
$1
&&
shift
GIRARHOST
=
$1
shift
fi
mygetopts
()
mygetopts
()
{
{
...
...
bin/rpmbph
View file @
0d8ffd58
...
@@ -310,10 +310,7 @@ fi
...
@@ -310,10 +310,7 @@ fi
LISTRPMARGS
=
$(
drop_args
"
$*
"
n v
)
LISTRPMARGS
=
$(
drop_args
"
$*
"
n v
)
}
}
if
is_girar_name
$1
;
then
set_girar_host
$1
&&
shift
GIRARHOST
=
$1
shift
fi
parse_cmd_pre_spec
"
$@
"
parse_cmd_pre_spec
"
$@
"
mygetopts
$LISTARGS
mygetopts
$LISTARGS
...
...
bin/rpmbs
View file @
0d8ffd58
...
@@ -165,16 +165,7 @@ rpmbs_copying_built()
...
@@ -165,16 +165,7 @@ rpmbs_copying_built()
fi
fi
}
}
if
is_girar_name
$1
;
then
set_girar_host
$1
&&
shift
GIRARHOST
=
$1
shift
else
REMOTELIST
=
"
$(
get_remote_git_list
)
"
if
is_one_girar_name
"
$REMOTELIST
"
;
then
# use one target if it one
GIRARHOST
=
"
$REMOTELIST
"
fi
fi
parse_cmd_pre_spec
"
$@
"
parse_cmd_pre_spec
"
$@
"
# quotes brokes option handling
# quotes brokes option handling
...
...
bin/rpmbsh
View file @
0d8ffd58
...
@@ -62,10 +62,7 @@ LISTRPMARGS=$@
...
@@ -62,10 +62,7 @@ LISTRPMARGS=$@
}
}
#############################
#############################
if
is_girar_name
$1
;
then
set_girar_host
$1
&&
shift
GIRARHOST
=
$1
shift
fi
parse_cmd_pre_spec
"
$@
"
parse_cmd_pre_spec
"
$@
"
mygetopts
$LISTARGS
mygetopts
$LISTARGS
...
...
bin/rpmgp
View file @
0d8ffd58
...
@@ -197,10 +197,7 @@ shift $((OPTIND - 1))
...
@@ -197,10 +197,7 @@ shift $((OPTIND - 1))
LISTRPMARGS
=
$@
LISTRPMARGS
=
$@
}
}
if
is_girar_name
$1
;
then
set_girar_host
$1
&&
shift
GIRARHOST
=
$1
shift
fi
parse_cmd_pre
"
$@
"
parse_cmd_pre
"
$@
"
mygetopts
$LISTARGS
mygetopts
$LISTARGS
...
...
bin/rpmrb
View file @
0d8ffd58
...
@@ -18,10 +18,7 @@ if [ "$1" = "-r" ] ; then
...
@@ -18,10 +18,7 @@ if [ "$1" = "-r" ] ; then
shift
shift
fi
fi
if
is_girar_name
$1
;
then
set_girar_host
$1
&&
shift
GIRARHOST
=
$1
shift
fi
SPEC
=
$1
SPEC
=
$1
VER
=
$2
VER
=
$2
...
...
share/eterbuild/functions/git
View file @
0d8ffd58
...
@@ -60,6 +60,23 @@ is_one_girar_name()
...
@@ -60,6 +60,23 @@ is_one_girar_name()
[
-n
"
$RES
"
]
[
-n
"
$RES
"
]
}
}
# Try autodetect GIRARHOST. Return true, if get it from arg (need for shift args)
set_girar_host
()
{
if
is_girar_name
"
$1
"
;
then
GIRARHOST
=
"
$1
"
return
0
fi
# Try get from remote list, if unique record there
REMOTELIST
=
"
$(
get_remote_git_list
)
"
if
is_one_girar_name
"
$REMOTELIST
"
;
then
# use one target if it one
GIRARHOST
=
"
$REMOTELIST
"
fi
return
1
}
_list_git_package
()
_list_git_package
()
{
{
while
[
-n
"
$1
"
]
;
do
while
[
-n
"
$1
"
]
;
do
...
...
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