File: wikicommit.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 (17 lines) | stat: -rwxr-xr-x 291 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

files=`find . -name \* -print | grep -v CVS | grep -v Makefile | sed "s%^\./%%" | sed "s%^\.%%"`

for i in $files
do
	image=`file $i | grep -i image`

	if [ "$image" != "" ]
	then
		echo Adding image: $i
		cvs add -kb $i
	else
		echo Adding regular file: $i
		cvs add $i
	fi
done