From b6529a34fd5a3b821bfef0cdecea8106a8487ef0 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 19 Apr 1999 13:35:24 +0000 Subject: Patch from Ralf Corsepius to reorganize the build-tools layout to simplify it. This script reorganizes and simpilfies the build-tools subdirectories. It moves all source-files and scripts to c/build-tools/. This will enable use to use this directory directly to refer to the build-tools instead of copying them around in a "preinstall" step in future. However, RTEMS's autoconf Makefile.ins and *.cfg files are not yet prepared to apply this approach and therefore require additional work. --- tools/build/scripts/lock-directory.in | 43 ----------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 tools/build/scripts/lock-directory.in (limited to 'tools/build/scripts/lock-directory.in') diff --git a/tools/build/scripts/lock-directory.in b/tools/build/scripts/lock-directory.in deleted file mode 100644 index 1c205cdec0..0000000000 --- a/tools/build/scripts/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: *** - -- cgit v1.2.3