Commit 1a285bda authored by Eric Timmons's avatar Eric Timmons
Browse files

Fix for nested directories

parent 015c8ab9
......@@ -2,16 +2,23 @@
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")"
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")"
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")"
# Local Variables:
# sh-basic-offset: 2
# End:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment