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
102c638f
Commit
102c638f
authored
Dec 08, 2014
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
realize get_repo_name via giter print name
parent
30faab0b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
19 deletions
+5
-19
etersoft-build-utils.spec
etersoft-build-utils.spec
+1
-1
git
share/eterbuild/functions/git
+4
-18
No files found.
etersoft-build-utils.spec
View file @
102c638f
...
...
@@ -22,7 +22,7 @@ BuildArchitectures: noarch
# Buildreqs note: C compiler is required by rpm-build; we do not require C++ here
BuildRequires: rpm-build-compat >= %altcompat_ver
Requires: giter >= 0.
3
Requires: giter >= 0.
4
Requires: eepm >= 1.5.0
Requires: erc >= 0.5
...
...
share/eterbuild/functions/git
View file @
102c638f
#!/bin/bash
# 2008 Etersoft www.etersoft.ru
# 2008
, 2014
Etersoft www.etersoft.ru
# Author: Vitaly Lipatov <lav@etersoft.ru>
# Author: Denis Smirnov <mithraen@altlinux.ru>
# Public domain
...
...
@@ -31,26 +31,12 @@ get_current_branch()
git branch |
grep
'^\*'
|
sed
's/^..//'
|
tr
-d
"
\n
"
}
# get name from current remote repository name
get_remote_repo_name
()
{
local
branch remote url
basename
branch
=
$(
get_current_branch
)
[
-n
"
$branch
"
]
||
return
remote
=
$(
git config
--get
branch.
$branch
.remote
)
url
=
$(
git config
--get
remote.
$remote
.url
)
[
-n
"
$url
"
]
||
return
basename
=
$(
basename
"
$url
"
.git
)
echo
"
$basename
"
[
-n
"
$basename
"
]
}
get_repo_name
()
{
# try use remote repo name firstly
get_remote_repo_name
&&
return
giter print name
# use repo dir name in other way
get_gear_name
&&
return
#
get_gear_name && return
# get name from spec
#build_rpms_name "$LISTNAMES"
#PROJECTNAME=$(echo $BASENAME | filter_gear_name)
...
...
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