Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
clpm
clpm
Commits
1a285bda
Commit
1a285bda
authored
Feb 20, 2020
by
Eric Timmons
Browse files
Fix install.sh for nested directories
parent
015c8ab9
Changes
1
Hide whitespace changes
Inline
Side-by-side
install.sh
View file @
1a285bda
...
...
@@ -2,16 +2,23 @@
INSTALL_ROOT
=
${
INSTALL_ROOT
:-
/usr/local
}
install
-d
"
$INSTALL_ROOT
/bin"
install
-d
"
$INSTALL_ROOT
/lib/clpm"
install
-d
"
$INSTALL_ROOT
/man/man1"
install_directory
()
{
install
-d
"
$INSTALL_ROOT
/
$1
"
find
"build/
$1
"
-maxdepth
1
-type
f
-exec
install
-t
"
$INSTALL_ROOT
/
$1
/"
{}
\;
# I don't think this works with hidden directories, but we have none of
# those...
for
f
in
"build/
$1
"
/
*
;
do
if
[
-d
"
$f
"
]
;
then
install_directory
"
$1
/
$(
basename
"
$f
"
)
"
fi
done
install
-T
build/bin/clpm
"
$INSTALL_ROOT
/bin/clpm"
}
for
f
in
build/lib/clpm/
*
;
do
install
-T
"
$f
"
"
$INSTALL_ROOT
/lib/clpm/
$(
basename
"
$f
"
)
"
done
install_directory bin
install
_directory lib/clpm
install_directory man/man1
for
f
in
build/man/man1/
*
;
do
install
-T
"
$f
"
"
$INSTALL_ROOT
/man/man1/
$(
basename
"
$f
"
)
"
done
# Local Variables:
# sh-basic-offset: 2
# End:
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