File: copygitignores.sh

package info (click to toggle)
geda-doc 1%3A1.4.0-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 5,344 kB
  • ctags: 1,363
  • sloc: sh: 742; makefile: 145
file content (19 lines) | stat: -rwxr-xr-x 345 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

if [ ! -d "wiki" -a ! -d "wip" ]
then
        echo "You must start this program in the toplevel docs directory"
        echo "wherever wiki and wip live."
        exit 1
fi

files=`find wiki -name .gitignore -print`

for i in $files
do
	src=$i
	dest=`echo $i | sed "s/^wiki/wip/"`	
	echo Copying $src to $dest
	cp -f $src $dest
done