Return to rc.subr CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / elwix / config |
version 1.1.1.1, 2011/07/05 23:43:00 | version 1.2, 2011/10/18 09:02:06 |
---|---|
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 57 InstallFiles() | Line 57 InstallFiles() |
InstallProg() | 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 - | |
} | } |