Prevent ldconfig from choking by creating any missing directories.

This commit is contained in:
Poul-Henning Kamp 1998-09-16 17:42:53 +00:00
parent 406f5f9aec
commit 14d9b0c364

@ -1,6 +1,6 @@
#!/bin/sh
#
# $Id$
# $Id: move_aout_libs.sh,v 1.1 1998/09/09 05:28:18 jb Exp $
#
# Search for a.out libraries and move them to an aout subdirectory of
# the elf library directory.
@ -106,9 +106,10 @@ move_if_aout ( )
# Only search the directories specified.
for dir in $libdirs
do
# Check that the directory actually exists. There is no point
# searching missing directories.
if test -d $dir; then
# Make sure the directory exists, or ldconfig will choke later.
if test ! -d $dir; then
mkdir -p $dir $dir/aout
fi
echo "Searching library directory $dir for a.out libraries..."
# Get a list of archive libraries.
@ -128,7 +129,6 @@ do
# Move each a.out shared library:
move_if_aout
fi
done
# If we created the time stamp program, delete it: