From 907ef1f68089bcb740cb9a7cdf1d210470030663 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 1 May 2002 23:14:32 +0000 Subject: 2002-05-01 Joel Sherrill * lock-directory.in, unlock-directory.in: Removed. * Makefile.am, README, .cvsignore: Updated to reflect above. --- tools/build/unlock-directory.in | 41 ----------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 tools/build/unlock-directory.in (limited to 'tools/build/unlock-directory.in') diff --git a/tools/build/unlock-directory.in b/tools/build/unlock-directory.in deleted file mode 100644 index c63ceff881..0000000000 --- a/tools/build/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: *** - -- cgit v1.2.3