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
6f440c39
Commit
6f440c39
authored
Feb 11, 2025
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get_gear_rules: move path-to-spec support to get_root_git_dir
parent
6d3b2b17
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
common
share/eterbuild/functions/common
+2
-1
gear
share/eterbuild/functions/gear
+1
-2
No files found.
share/eterbuild/functions/common
View file @
6f440c39
...
...
@@ -294,7 +294,8 @@ get_root_git_dir()
which git
>
/dev/null 2>/dev/null
||
return
0
if
[
-n
"
$LOCDIR
"
]
;
then
cd
"
$LOCDIR
"
||
fatal
"Only dir arg allowed for get_root_git_dir"
[
-f
"
$LOCDIR
"
]
&&
LOCDIR
=
$(
dirname
"
$LOCDIR
"
)
cd
"
$LOCDIR
"
||
fatal
"get_root_git_dir: dir
$LOCDIR
does not exists"
fi
DIR
=
$(
git rev-parse
--git-dir
2>/dev/null
)
/../
...
...
share/eterbuild/functions/gear
View file @
6f440c39
...
...
@@ -8,8 +8,7 @@ get_gear_rules()
{
local
DIR
=
"
$1
"
[
-z
"
$IGNOREGEAR
"
]
||
return
1
[
-f
"
$DIR
"
]
&&
DIR
=
$(
dirname
"
$DIR
"
)
local
GITDIR
=
$(
get_root_git_dir
$DIR
)
local
GITDIR
=
$(
get_root_git_dir
"
$DIR
"
)
local
rules
=
"
$GITDIR
/.gear/rules"
[
-r
"
$rules
"
]
||
rules
=
"
$GITDIR
/.gear-rules"
[
-r
"
$rules
"
]
||
return
...
...
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