diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-07-23 20:01:41 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-07-23 20:01:41 +0000 |
commit | b0ac03f4ddb8a1643313f4f9c04fa6aac9378192 (patch) | |
tree | c728f532ed1b269d475dfe829a8e1e088d5b84e8 /c/build-tools/unlock-directory.in | |
parent | Tools moved to top-level directory per patch from Ralf Corsepius <corsepiu@fa... (diff) | |
download | rtems-b0ac03f4ddb8a1643313f4f9c04fa6aac9378192.tar.bz2 |
Moved to top level directory per patch rtems-rc-19990709-0.diff.gz
from Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
Diffstat (limited to 'c/build-tools/unlock-directory.in')
-rw-r--r-- | c/build-tools/unlock-directory.in | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/c/build-tools/unlock-directory.in b/c/build-tools/unlock-directory.in deleted file mode 100644 index c63ceff881..0000000000 --- a/c/build-tools/unlock-directory.in +++ /dev/null @@ -1,41 +0,0 @@ -#!@KSH@ -# -# $Id$ -# -# Unlock a directory processed by lock_directory -# - -# is a particular command available on this machine? -# -cmd_avail() -{ - set -- `type $1 2>&1` - if [ "$2" = "not" -a "$3" = "found" ] || [ "$3" = "not" -a "$4" = "found" ] - then - return 1 - else - return 0 - fi -} - -unlock_directory() { - ul_dir=$1/. # get any symlink out of the way using '.' - if [ -d $ul_dir ] - then - find $ul_dir -type d ! -perm -0222 -print | $XARGS -t chmod +w - fi -} - -# Use gnu xargs if available; faster, more reliable in general -XARGS=xargs -cmd_avail gxargs && XARGS=gxargs - -for dir -do - unlock_directory $dir -done - -# Local Variables: *** -# mode:ksh *** -# End: *** - |