Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CiviCRM Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
CiviCRM Core
Commits
4384f1bb
Commit
4384f1bb
authored
11 years ago
by
totten
Browse files
Options
Downloads
Patches
Plain Diff
givi - Add "--setup" and "--gencode" options
parent
8d64bbe0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/givi
+25
-0
25 additions, 0 deletions
bin/givi
with
25 additions
and
0 deletions
bin/givi
+
25
−
0
View file @
4384f1bb
...
...
@@ -79,6 +79,16 @@ class Givi {
*/
protected
$repos
;
/**
* @var bool
*/
protected
$useGencode
=
FALSE
;
/**
* @var bool
*/
protected
$useSetup
=
FALSE
;
/**
* @var array, non-hyphenated arguments after the basedir
*/
...
...
@@ -158,6 +168,13 @@ class Givi {
return
$this
->
returnError
(
"unrecognized action:
{
$this
->
action
}
\n
"
);
}
if
(
$this
->
useSetup
)
{
$this
->
run
(
'core'
,
$this
->
civiRoot
.
'/bin'
,
'bash'
,
'setup.sh'
);
}
elseif
(
$this
->
useGencode
)
{
$this
->
run
(
'core'
,
$this
->
civiRoot
.
'/xml'
,
'php'
,
'GenCode.php'
);
}
$this
->
dirStack
->
pop
();
}
...
...
@@ -179,6 +196,12 @@ class Givi {
elseif
(
$arg
==
'--dry-run'
||
$arg
==
'-n'
)
{
$this
->
dryRun
=
TRUE
;
}
elseif
(
$arg
==
'--gencode'
)
{
$this
->
useGencode
=
TRUE
;
}
elseif
(
$arg
==
'--setup'
)
{
$this
->
useSetup
=
TRUE
;
}
elseif
(
preg_match
(
'/^--d([678])/'
,
$arg
,
$matches
))
{
$this
->
drupalVersion
=
$matches
[
1
];
}
...
...
@@ -236,6 +259,8 @@ class Givi {
echo
" --fetch: Fetch the latest code before creating, updating, or checking-out anything
\n
"
;
echo
" --repos=X: Restrict operations to the listed repos (comma-delimited list) (default: all)"
;
echo
" --root=X: Specify CiviCRM root directory (default: .)
\n
"
;
echo
" --gencode: Run xml/GenCode after checking out code
\n
"
;
echo
" --setup: Run bin/setup.sh (incl xml/GenCode) after checking out code
\n
"
;
echo
"Special options:
\n
"
;
echo
" --core=X: Specify the branch to use on the core repository
\n
"
;
echo
" --packages=X: Specify the branch to use on the packages repository
\n
"
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment