File: copygitignores.sh

package info (click to toggle)
geda-gaf 1%3A1.6.1-5
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 38,880 kB
  • ctags: 8,989
  • sloc: ansic: 80,229; sh: 13,249; lisp: 7,177; makefile: 2,597; perl: 2,401; python: 940; lex: 887; awk: 362; yacc: 289; sed: 27; xml: 23
file content (19 lines) | stat: -rwxr-xr-x 360 bytes parent folder | download | duplicates (2)
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 "wikiold" ]
then
        echo "You must start this program in the toplevel docs directory"
        echo "wherever wiki and wikiold live."
        exit 1
fi

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

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