diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-05-01 23:14:32 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-05-01 23:14:32 +0000 |
commit | 907ef1f68089bcb740cb9a7cdf1d210470030663 (patch) | |
tree | 051bf47185a5896de8efbe59846d0327c2800208 /tools/build/lock-directory.in | |
parent | 2002-04-24 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff) | |
download | rtems-907ef1f68089bcb740cb9a7cdf1d210470030663.tar.bz2 |
2002-05-01 Joel Sherrill <joel@OARcorp.com>
* lock-directory.in, unlock-directory.in: Removed.
* Makefile.am, README, .cvsignore: Updated to reflect above.
Diffstat (limited to '')
-rw-r--r-- | tools/build/lock-directory.in | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/tools/build/lock-directory.in b/tools/build/lock-directory.in deleted file mode 100644 index 1c205cdec0..0000000000 --- a/tools/build/lock-directory.in +++ /dev/null @@ -1,43 +0,0 @@ -#!@KSH@ -# -# $Id$ -# -# Make a directory write protected -# Used to write protect the install point after a build -# to prevent inadvertant overwriting. -# - -# 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 -} - -lock_directory() { - l_dir=$1/. # get any symlink out of the way using '.' - if [ -d $l_dir ] - then - find $l_dir -type d -perm -0200 -print | $XARGS chmod -w - fi -} - -# Use gnu xargs if available; faster, more reliable in general -XARGS=xargs -cmd_avail gxargs && XARGS=gxargs - -for dir -do - lock_directory $dir -done - -# Local Variables: *** -# mode:ksh *** -# End: *** - |