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
dd6a203d
Commit
dd6a203d
authored
Feb 06, 2010
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix is_gear script for use get_root_git_dir
parent
468fac7b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
common
share/eterbuild/functions/common
+3
-7
get_git_root.sh
tests/get_git_root.sh
+7
-0
No files found.
share/eterbuild/functions/common
View file @
dd6a203d
...
...
@@ -63,13 +63,9 @@ is_gear()
{
local
DIR
=
$1
[
-z
"
$IGNOREGEAR
"
]
||
return
1
[
-n
"
$DIR
"
]
&&
DIR
=
$DIR
/
[
-r
"
${
DIR
}
.gear/rules"
]
&&
return
0
[
-r
"
$DIR
/.gear-rules"
]
&&
return
0
# hack for support spec in some subdir
[
-d
"../.gear"
]
&&
return
0
local
GITDIR
=
$(
get_root_git_dir
"
$DIR
"
)
[
-d
"
$GITDIR
/.gear"
]
&&
return
0
[
-r
"
$GITDIR
/.gear-rules"
]
&&
return
0
return
1
}
...
...
tests/get_git_root.sh
View file @
dd6a203d
...
...
@@ -4,3 +4,10 @@
load_mod git
get_root_git_dir
echo
"test gear for curdir"
is_gear
&&
echo
"IS GEAR"
||
echo
"IS NOT GEAR"
echo
"test gear for root_git_dir"
is_gear
$(
get_root_git_dir
)
&&
echo
"IS GEAR"
||
echo
"IS NOT GEAR"
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