version 1.1.1.1, 2011/07/05 23:43:00
|
version 1.2.4.1, 2011/12/19 20:43:07
|
Line 46 InstallList()
|
Line 46 InstallList()
|
|
|
# $1 = From dir |
# $1 = From dir |
# $2 = To dir |
# $2 = To dir |
InstallFiles() | InstallDir() |
{ |
{ |
cd $1 |
cd $1 |
pax -rw -pe -X . $2 |
pax -rw -pe -X . $2 |
Line 58 InstallProg()
|
Line 58 InstallProg()
|
{ |
{ |
install -c $* |
install -c $* |
} |
} |
|
|
|
# $1 = file_pattern |
|
# $2 = To dir |
|
# $3 = From dir |
|
InstallFiles() |
|
{ |
|
cd $2 |
|
find . -type f -name "$1" | |
|
tar -cvf - -T - | tar -C $3 -xf - |
|
cd - |
|
} |
|
|
|
# $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 |
|
} |
|
|