version 1.32, 2009/12/10 19:34:39 |
version 1.33, 2009/12/31 16:48:19 |
|
|
#!/bin/sh |
#!/bin/sh |
# $RedRiver: update_openbsd,v 1.31 2009/12/10 19:23:11 andrew Exp $ |
# $RedRiver: update_openbsd,v 1.32 2009/12/10 19:34:39 andrew Exp $ |
|
|
installed_sets() { |
installed_sets() { |
local misc=/usr/share/doc/README |
local misc=/usr/share/doc/README |
|
|
|
|
follow_symlink () { |
follow_symlink () { |
local _file=$1 |
local _file=$1 |
local _next=$( file $_file | |
# This could go circular, but I dunno how to fix that. |
grep 'symbolic link' | |
if [ -h $_file ]; then |
sed -e s/^.*\\\`// -e s/\\\'\$// ) |
follow_symlink $( file $_file | |
if [ -h $_next ]; then |
grep 'symbolic link' | |
follow_symlink $_next |
sed -e s/^.*\\\`// -e s/\\\'\$// ) |
else |
else |
echo $_next |
echo $_file |
fi |
fi |
} |
} |
|
|