Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository 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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
savoirfairelinux
jami-project
Commits
62004f28
Commit
62004f28
authored
5 years ago
by
Alexander Schlarb
Browse files
Options
Downloads
Patches
Plain Diff
make-ring: Allow skipping the use of `sudo` for `make install`
Change-Id: I673232c637926622f07b4d792906941aff21994a
parent
ddc9e48c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
make-ring.py
+3
-0
3 additions, 0 deletions
make-ring.py
scripts/install.sh
+10
-5
10 additions, 5 deletions
scripts/install.sh
with
13 additions
and
5 deletions
make-ring.py
+
3
−
0
View file @
62004f28
...
...
@@ -296,6 +296,8 @@ def run_install(args):
install_args
.
append
(
'
-s
'
)
if
args
.
global_install
:
install_args
.
append
(
'
-g
'
)
if
not
args
.
priv_install
:
install_args
.
append
(
'
-u
'
)
if
args
.
distribution
==
OSX_DISTRIBUTION_NAME
:
# The `universal_newlines` parameter has been renamed to `text` in
...
...
@@ -453,6 +455,7 @@ def parse_args():
ap
.
add_argument
(
'
--global-install
'
,
default
=
False
,
action
=
'
store_true
'
)
ap
.
add_argument
(
'
--debug
'
,
default
=
False
,
action
=
'
store_true
'
)
ap
.
add_argument
(
'
--background
'
,
default
=
False
,
action
=
'
store_true
'
)
ap
.
add_argument
(
'
--no-priv-install
'
,
dest
=
'
priv_install
'
,
default
=
True
,
action
=
'
store_false
'
)
if
choose_distribution
()
==
WIN32_DISTRIBUTION_NAME
:
ap
.
add_argument
(
'
--toolset
'
,
default
=
win_toolset_default
,
type
=
str
,
help
=
'
Windows use only, specify Visual Studio toolset version
'
)
...
...
This diff is collapsed.
Click to expand it.
scripts/install.sh
+
10
−
5
View file @
62004f28
...
...
@@ -9,6 +9,7 @@ export OSTYPE
# -s: link everything statically, no D-Bus communication. More likely to work!
# -c: client to build
# -p: number of processors to use
# -u: disable use of privileges (sudo) during install
set
-ex
...
...
@@ -16,7 +17,8 @@ global=false
static
=
''
client
=
''
proc
=
'1'
while
getopts
gsc:p: OPT
;
do
priv_install
=
true
while
getopts
gsc:p:u OPT
;
do
case
"
$OPT
"
in
g
)
global
=
'true'
...
...
@@ -30,6 +32,9 @@ while getopts gsc:p: OPT; do
p
)
proc
=
"
${
OPTARG
}
"
;;
u
)
priv_install
=
'false'
;;
\?
)
exit
1
;;
...
...
@@ -37,7 +42,7 @@ while getopts gsc:p: OPT; do
done
make_install
()
{
if
[
"
$1
"
=
"true"
]
;
then
if
[
"
$1
"
=
"true"
]
&&
[
"
$2
"
!=
"false"
]
;
then
sudo
make
install
# Or else the next non-sudo install will fail, because this generates some
# root owned files like install_manifest.txt under the build directory.
...
...
@@ -77,7 +82,7 @@ else
./configure
$sharedLib
$CONFIGURE_FLAGS
--prefix
=
"
${
INSTALL
}
/daemon"
fi
make
-j
"
${
proc
}
"
make_install
"
${
global
}
"
make_install
"
${
global
}
"
"
${
priv_install
}
"
cd
"
${
TOP
}
/lrc"
mkdir
-p
"
${
BUILDDIR
}
"
...
...
@@ -91,7 +96,7 @@ else
-DRING_BUILD_DIR
=
"
${
DAEMON
}
/src"
$static
fi
make
-j
"
${
proc
}
"
make_install
"
${
global
}
"
make_install
"
${
global
}
"
"
${
priv_install
}
"
cd
"
${
TOP
}
/
${
client
}
"
mkdir
-p
"
${
BUILDDIR
}
"
...
...
@@ -105,4 +110,4 @@ else
-DLibRingClient_DIR
=
"
${
INSTALL
}
/lrc/lib/cmake/LibRingClient"
$static
fi
make
-j
"
${
proc
}
"
make_install
"
${
global
}
"
make_install
"
${
global
}
"
"
${
priv_install
}
"
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