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/rcs-clean.in | 73 ---------------------------------------- 1 file changed, 73 deletions(-) delete mode 100644 tools/build/scripts/rcs-clean.in (limited to 'tools/build/scripts/rcs-clean.in') diff --git a/tools/build/scripts/rcs-clean.in b/tools/build/scripts/rcs-clean.in deleted file mode 100644 index 83fed05128..0000000000 --- a/tools/build/scripts/rcs-clean.in +++ /dev/null @@ -1,73 +0,0 @@ -#!@KSH@ -p -# -# $Id$ -# -# Delete all files from the current directory that can be recreated -# via RCS 'co' commonds -# Used by 'make clobber' -# - -progname=${0##*/} # fast basename hack for ksh, bash - -USAGE=\ -"usage: $progname [ -v ]" - -fatal() { - if [ "$1" ] - then - echo $* >&2 - fi - echo "$USAGE" 1>&2 - exit 1 -} - -# -# process the options -# - -verbose="" - -while getopts v OPT -do - case "$OPT" in - v) - verbose="yes";; - *) - fatal - esac -done - -let $((shiftcount = $OPTIND - 1)) -shift $shiftcount - -args=$* -[ "$args" ] && fatal - -[ -d RCS/. ] || exit 0 - -# there is probably a better way to do this - -rcs_files=`echo RCS/*,v | sed -e 's?RCS/??g' -e's/,v//g'` - -kills="" -for f in $rcs_files -do - # build list of all files in RCS/*,v that are *not* locked - if [ -f $f ] && [ ! -w $f ] && [ -f RCS/$f,v ] - then - locked=`rlog -L -R $f` - [ "$locked" = "" ] && kills="$kills $f" - fi -done - -if [ "$kills" ] -then - [ "$verbose" ] && echo rm -f $kills - rm -f $kills -fi - -exit 0 - -# Local Variables: *** -# mode:ksh *** -# End: *** -- cgit v1.2.3