diff options
author | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-25 19:26:56 +0000 |
---|---|---|
committer | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-25 19:26:56 +0000 |
commit | 91f4b859c20d25898da3324921758c2d35523fd5 (patch) | |
tree | 0d8023335880d0e16593210ae94b57b58d4d5a85 /cleanlinks | |
parent | e5ab5c93d3178aa82b66e2c086b54e042930725e (diff) |
XFree86 4.3.99.16 Bring the tree up to date for the Cygwin folksxf86-4_3_99_902xf86-4_3_99_901xf86-4_3_99_16
Diffstat (limited to 'cleanlinks')
-rw-r--r-- | cleanlinks | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,13 +1,13 @@ #!/bin/sh # -# Copyright © 2000 by The XFree86 Project, Inc +# Copyright © 2000, 2003 by The XFree86 Project, Inc # # Remove dangling symlinks and empty directories from a shadow link tree # (created with lndir). # # Author: David Dawes <dawes@xfree86.org> # -# $XFree86: xc/config/util/cleanlinks.sh,v 1.1 2001/03/21 20:25:00 dawes Exp $ +# $XFree86: xc/config/util/cleanlinks.sh,v 1.2 2003/04/15 03:05:16 dawes Exp $ find . -type l -print | ( @@ -22,5 +22,6 @@ find . -type l -print | ) echo Removing empty directories ... -find . -type d -depth -print | xargs rmdir > /dev/null 2>&1 +#find . -type d -depth -print | xargs rmdir > /dev/null 2>&1 +find . -type d -depth -empty -print -exec rmdir {} \; exit 0 |