File: remove_svn_tags

package info (click to toggle)
qmmp 0.5.5-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 10,156 kB
  • sloc: cpp: 41,923; ansic: 2,539; sh: 53; makefile: 20
file content (31 lines) | stat: -rw-r--r-- 460 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
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh

######################################
# Removes svn tags from qmmp package #
######################################

rm_dir='.svn'

walk_dirs(){

    for file in `ls -a`
    do
	if [ -d $file ]
	then
	    if [ $file == $rm_dir ]
	    then
		echo "Removing $rm_dir directory..."
		rm -rf $rm_dir
	    elif [[ $file != '.' && $file != '..' ]]
	    then
		echo "Entering $file"
		cd $file;
		walk_dirs;
		cd ..
	    fi
	fi
    done
	    
}

walk_dirs