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
0d1bbbb5
Commit
0d1bbbb5
authored
Feb 06, 2013
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gremote: add -u for add user repo
parent
5bce29ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
gremote
bin/gremote
+20
-1
No files found.
bin/gremote
View file @
0d1bbbb5
...
...
@@ -2,11 +2,15 @@
# load common functions, compatible with local and installed script
.
`
dirname
$0
`
/../share/eterbuild/functions/common
load_mod git
load_mod git rpm
#load_mod rpm tarball alt git web buildsrpm
if
[
"
$1
"
=
"-h"
]
||
[
"
$1
"
=
"--help"
]
;
then
echo
"gremote - git remote -v"
echo
"Use: gremote"
echo
"Options:"
echo
" -u USER add path to USER package repo"
exit
1
fi
...
...
@@ -15,7 +19,22 @@ if is_girar_name $1 ; then
shift
fi
if
[
"
$1
"
=
"-u"
]
;
then
shift
RU
=
"
$1
"
[
-n
"
$RU
"
]
||
fatal
"User missed. Please, run as gremote -u USER"
SPEC
=
$(
get_gear_spec
)
build_rpms_name
"
$SPEC
"
# copied from rpmbs
# FIXME: hack: get project name from package name
PROJECTNAME
=
$(
echo
$BASENAME
| filter_gear_name
)
[
-n
"
$PROJECTNAME
"
]
||
fatal
"Can't detect current project name"
docmd git remote add
$RU
$GIRARHOST
:/people/
$RU
/packages/
$PROJECTNAME
.git
exit
fi
test
-r
"
$1
"
&&
fatal
"Do not need any params more"
showcmd git remote
-v
git remote
-v
|
sed
-e
"s|(fetch)
$|
|"
|
sed
-e
"s|(push)
$|
|"
|
sort
-u
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