Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
freedombone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Context Sensitive Group
freedombone
Commits
f3a6124f
Commit
f3a6124f
authored
8 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Tidying
parent
f1ba8298
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/freedombone-utils-config
+4
-11
4 additions, 11 deletions
src/freedombone-utils-config
src/freedombone-utils-setup
+6
-2
6 additions, 2 deletions
src/freedombone-utils-setup
with
10 additions
and
13 deletions
src/freedombone-utils-config
+
4
−
11
View file @
f3a6124f
...
...
@@ -124,15 +124,12 @@ function write_config_param {
param_name
=
"
$1
"
param_value
=
"
$2
"
if
[
!
$CONFIGURATION_FILE
]
;
then
CONFIGURATION_FILE
=
$HOME
/
${
PROJECT_NAME
}
.cfg
fi
if
[
${#
param_name
}
-gt
0
]
;
then
if
[
${#
param_value
}
-gt
0
]
;
then
# set configuration file location if needed
test_config_file
=
"
$CONFIGURATION_FILE
"
if
[
${#
test_config_file
}
-eq
0
]
;
then
$CONFIGURATION_FILE
=
$HOME
/
${
PROJECT_NAME
}
.cfg
fi
# update the configuration file
if
[
-f
$CONFIGURATION_FILE
]
;
then
if
grep
-q
"
${
param_name
}
="
$CONFIGURATION_FILE
;
then
sed
-i
"s|
${
param_name
}
=.*|
${
param_name
}
=
${
param_value
}
|g"
$CONFIGURATION_FILE
...
...
@@ -147,10 +144,6 @@ function write_config_param {
}
function
save_configuration_values
{
if
[
!
$CONFIGURATION_FILE
]
;
then
CONFIGURATION_FILE
=
$HOME
/
${
PROJECT_NAME
}
.cfg
fi
for
v
in
"
${
configuration_variables
[@]
}
"
do
write_config_param
"
$v
"
"
${
!v
}
"
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-utils-setup
+
6
−
2
View file @
f3a6124f
...
...
@@ -35,10 +35,14 @@ fi
DEFAULT_DOMAIN_NAME
=
DEFAULT_DOMAIN_CODE
=
MY_USERNAME
=
SYSTEM_TYPE
=
"full"
if
[
!
$SYSTEM_TYPE
]
;
then
SYSTEM_TYPE
=
"full"
fi
# An optional configuration file which overrides some of these variables
CONFIGURATION_FILE
=
"
$HOME
/
${
PROJECT_NAME
}
.cfg"
if
[
!
$CONFIGURATION_FILE
]
;
then
CONFIGURATION_FILE
=
"
$HOME
/
${
PROJECT_NAME
}
.cfg"
fi
# Directory where source code is downloaded and compiled
INSTALL_DIR
=
$HOME
/build
...
...
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