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
ec3a38f3
You need to sign in or sign up before continuing.
Commit
ec3a38f3
authored
Dec 13, 2008
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move is_git from config to common, add is_gear function instead
obsoleted is_git
parent
10407621
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
11 deletions
+28
-11
common
share/eterbuild/functions/common
+28
-0
config
share/eterbuild/functions/config
+0
-11
No files found.
share/eterbuild/functions/common
View file @
ec3a38f3
...
...
@@ -58,6 +58,34 @@ is_alt()
return
$?
}
# Obsoleted:
# TODO: check for .gear, not .git?
is_git
()
{
local
DIR
=
$1
[
-n
"
$DIR
"
]
&&
[
-d
"
$DIR
/.git"
]
&&
return
0
[
-d
".git"
]
&&
return
0
# hack for support spec in some subdir
[
-d
"../.gear"
]
&&
return
0
return
1
}
is_gear
()
{
local
DIR
=
$1
[
-n
"
$DIR
"
]
&&
[
-d
"
$DIR
/.gear"
]
&&
return
0
[
-d
".gear"
]
&&
return
0
# compat
[
-n
"
$DIR
"
]
&&
[
-r
"
$DIR
/.gear-rules"
]
&&
return
0
[
-r
".gear-rules"
]
&&
return
0
# hack for support spec in some subdir
[
-d
"../.gear"
]
&&
return
0
return
1
}
if
[
"
$UID
"
=
"0"
]
;
then
fatal
"It is strict recommended do not use these scripts as root"
fi
...
...
share/eterbuild/functions/config
View file @
ec3a38f3
...
...
@@ -21,17 +21,6 @@ OURTMPDIR=$TMPDIR
NICE
=
"nice"
RPMBUILD
=
rpmbuild
# TODO: check for .gear, not .git?
is_git
()
{
local
DIR
=
$1
[
-n
"
$DIR
"
]
&&
[
-d
"
$DIR
/.git"
]
&&
return
0
[
-d
".git"
]
&&
return
0
# hack for support spec in some subdir
[
-d
"../.gear"
]
&&
return
0
return
1
}
RPMDIR
=
"
$HOME
/RPM"
[
-n
"
$APTCONFBASE
"
]
||
APTCONFBASE
=
$ETERBUILDETC
/apt/apt.conf
...
...
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