summaryrefslogtreecommitdiffstats
path: root/tools/build/cvsignore-add.sh
blob: 45feab65653f0fbec789e86af0a087b3ac300081 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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