diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 1998-09-16 17:42:53 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1998-09-16 17:42:53 +0000 |
commit | 14d9b0c3640ce467a30c180836f2eeab1bc9a144 (patch) | |
tree | dbc104aaf29f63db4dec2609983fdfa4e92a002f /tools | |
parent | 406f5f9aecd78f0051e7cf647335b82443e2a210 (diff) |
Notes
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/tools/upgrade/move_aout_libs.sh | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/tools/tools/upgrade/move_aout_libs.sh b/tools/tools/upgrade/move_aout_libs.sh index 0e5590d5652b..1a1b9065ad7e 100755 --- a/tools/tools/upgrade/move_aout_libs.sh +++ b/tools/tools/upgrade/move_aout_libs.sh @@ -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,29 +106,29 @@ 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 - echo "Searching library directory $dir for a.out libraries..." + # 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. - files=`ls $dir/*.a 2> /dev/null` + # Get a list of archive libraries. + files=`ls $dir/*.a 2> /dev/null` - # a.out archive libraries look like this: - aoutmagic="current ar archive random library" + # a.out archive libraries look like this: + aoutmagic="current ar archive random library" - # Move each a.out archive library: - move_if_aout + # Move each a.out archive library: + move_if_aout - # Get a list of shared libraries - files=`ls $dir/*.so.*.* 2> /dev/null` + # Get a list of shared libraries + files=`ls $dir/*.so.*.* 2> /dev/null` - # a.out shared libraries look like this: - aoutmagic="FreeBSD/i386 compact demand paged shared library not stripped" + # a.out shared libraries look like this: + aoutmagic="FreeBSD/i386 compact demand paged shared library not stripped" - # Move each a.out shared library: - move_if_aout - fi + # Move each a.out shared library: + move_if_aout done # If we created the time stamp program, delete it: |