From 6f0df14228e6563dfd188dbeb856b8b453eace3d Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 4 Oct 2002 13:36:13 +0000 Subject: 2002-10-02 Chris Johns * cvsignore-add.sh: Script to append a specific file to all .cvsignore files if the files exists is a specific directory. --- tools/build/cvsignore-add.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 tools/build/cvsignore-add.sh (limited to 'tools/build/cvsignore-add.sh') diff --git a/tools/build/cvsignore-add.sh b/tools/build/cvsignore-add.sh new file mode 100755 index 0000000000..45feab6565 --- /dev/null +++ b/tools/build/cvsignore-add.sh @@ -0,0 +1,25 @@ +#!/bin/sh +# +# Find a file in the directory tree and create or add to a .cvsignore +# file that file name so it is ignored. +# +# Copyright 2001 Cybertec Pty Limited +# All rights reserved. +# +# $Id$ +# + +# +# We need one parameter, the file to add. +# + +if [ $# -eq 0 ]; then + echo "Usage: $0 file, where file is the one to be added." + exit 1 +fi + +for f in `find . -name $1`; +do + echo "`dirname $f`/.cvsignore" + echo "$1" >> `dirname $f`/.cvsignore +done -- cgit v1.2.3