Subversion Repositories svn.Prod repos

Rev

Rev 4 | Rev 37 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4 Rev 33
Line 37... Line 37...
37
	local curdir curdir2
37
	local curdir curdir2
38
 
38
 
39
	curdir=$(pwd)
39
	curdir=$(pwd)
40
	cd -- "$directory"
40
	cd -- "$directory"
41
	curdir2=$(pwd)
41
	curdir2=$(pwd)
42
	files=$(ls)
42
	files=$(ls -a)
43
	for file in $files 
43
	for file in $files 
44
	do
44
	do
45
		pfile=$curdir2/$file	# file including path
45
		pfile=$curdir2/$file	# file including path
46
		if [ -d "$file" -a ! -L "$file" ]
46
		if [ $file != ".." -a $file != "." ]
47
		then
47
		then
48
			echo $pfile
-
 
49
			traverse "$file"
-
 
50
		else
-
 
51
			if [ -f $file -o -L $file ]
48
			if [ -d "$file" -a ! -L "$file" ]
52
			then
49
			then
53
				echo "$pfile"
50
				echo $pfile
-
 
51
				traverse "$file"
54
			else
52
			else
-
 
53
				if [ -f $file -o -L $file ]
-
 
54
				then
-
 
55
					echo "$pfile"
-
 
56
				else
55
				echo "WARNING: Could not process file $pfile"
57
					echo "WARNING: Could not process file $pfile"
-
 
58
				fi
56
			fi
59
			fi
-
 
60
 
57
		fi	
61
		fi	
58
	done
62
	done
59
	cd -- "$curdir"
63
	cd -- "$curdir"
60
}
64
}
61
 
65