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
065e6d35
Commit
065e6d35
authored
Apr 16, 2010
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
introduce get_gear_name and use it
parent
e1c2530b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
3 deletions
+10
-3
gacl
bin/gacl
+1
-1
ginit
bin/ginit
+1
-1
gpush
bin/gpush
+1
-1
common
share/eterbuild/functions/common
+7
-0
No files found.
bin/gacl
View file @
065e6d35
...
@@ -28,7 +28,7 @@ mygetopts()
...
@@ -28,7 +28,7 @@ mygetopts()
# if two or one param only, try detect
# if two or one param only, try detect
if
[
-z
"
$3
"
]
||
[
-z
"
$2
"
]
;
then
if
[
-z
"
$3
"
]
||
[
-z
"
$2
"
]
;
then
# TODO
# TODO
PROJECTNAME
=
$(
basename
`
get_root_git_dir
`
)
PROJECTNAME
=
$(
get_gear_name
)
else
else
PROJECTNAME
=
$1
PROJECTNAME
=
$1
shift
shift
...
...
bin/ginit
View file @
065e6d35
...
@@ -19,7 +19,7 @@ if is_girar_name $1 ; then
...
@@ -19,7 +19,7 @@ if is_girar_name $1 ; then
fi
fi
# FIXME
# FIXME
PROJECTNAME
=
$(
basename
`
get_root_git_dir
`
)
PROJECTNAME
=
$(
get_gear_name
)
echo
"Create remote
$PROJECTNAME
repo in
$GIRARHOST
:"
echo
"Create remote
$PROJECTNAME
repo in
$GIRARHOST
:"
ssh
$GIRARHOST
git-init-db
$PROJECTNAME
.git
ssh
$GIRARHOST
git-init-db
$PROJECTNAME
.git
...
...
bin/gpush
View file @
065e6d35
...
@@ -34,7 +34,7 @@ fi
...
@@ -34,7 +34,7 @@ fi
# PROJECTNAME=$1
# PROJECTNAME=$1
# shift
# shift
#else
#else
PROJECTNAME
=
$(
basename
`
get_root_git_dir
`
)
PROJECTNAME
=
$(
get_gear_name
)
#fi
#fi
CURRENTBRANCH
=
$(
get_current_branch
)
CURRENTBRANCH
=
$(
get_current_branch
)
...
...
share/eterbuild/functions/common
View file @
065e6d35
...
@@ -97,6 +97,13 @@ is_gear()
...
@@ -97,6 +97,13 @@ is_gear()
return
1
return
1
}
}
# FIXME
get_gear_name
()
{
basename
`
get_root_git_dir
`
}
if
[
"
$UID
"
=
"0"
]
&&
[
-z
"
$ALLOW_ROOT_USER
"
]
;
then
if
[
"
$UID
"
=
"0"
]
&&
[
-z
"
$ALLOW_ROOT_USER
"
]
;
then
fatal
"It is strict recommended do not use these scripts as root"
fatal
"It is strict recommended do not use these scripts as root"
fi
fi
...
...
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