4.104.114.84.95
Last change
on this file since 072e8e5 was
6f0df142,
checked in by Joel Sherrill <joel.sherrill@…>, on 10/04/02 at 13:36:13
|
2002-10-02 Chris Johns <cjohns@…>
- cvsignore-add.sh: Script to append a specific file to all
.cvsignore files if the files exists is a specific directory.
|
-
Property mode set to
100755
|
File size:
448 bytes
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | # |
---|
3 | # Find a file in the directory tree and create or add to a .cvsignore |
---|
4 | # file that file name so it is ignored. |
---|
5 | # |
---|
6 | # Copyright 2001 Cybertec Pty Limited |
---|
7 | # All rights reserved. |
---|
8 | # |
---|
9 | # $Id$ |
---|
10 | # |
---|
11 | |
---|
12 | # |
---|
13 | # We need one parameter, the file to add. |
---|
14 | # |
---|
15 | |
---|
16 | if [ $# -eq 0 ]; then |
---|
17 | echo "Usage: $0 file, where file is the one to be added." |
---|
18 | exit 1 |
---|
19 | fi |
---|
20 | |
---|
21 | for f in `find . -name $1`; |
---|
22 | do |
---|
23 | echo "`dirname $f`/.cvsignore" |
---|
24 | echo "$1" >> `dirname $f`/.cvsignore |
---|
25 | done |
---|
Note: See
TracBrowser
for help on using the repository browser.