version 1.1.1.1.2.1, 2011/07/21 08:32:21
|
version 1.2.4.2, 2012/05/29 14:24:05
|
Line 60 InstallProg()
|
Line 60 InstallProg()
|
} |
} |
|
|
# $1 = file_pattern |
# $1 = file_pattern |
# $2 = To dir | # $2 = From dir |
# $3 = From dir | # $3 = To dir |
InstallFiles() |
InstallFiles() |
{ |
{ |
cd $2 | if [ -d "$2" ]; then |
find . -type f -name "$1" | | cd $2 |
tar -cvf - -T - | tar -C $3 -xf - | find . -type f -name "$1" | |
cd - | tar -cvf - -T - | tar -C $3 -xf - |
| cd - |
| fi |
} |
} |
|
|
|
# $1 = Directory for clean |
|
CleanCVS() |
|
{ |
|
find $1 -type d -name CVS -exec rm -rf {} \; >/dev/null 2>&1 |
|
find $1 -type f -name .#\* -exec rm -f {} \; >/dev/null 2>&1 |
|
} |
|
|