(佐々木@PSEG1)cls.shの不具合を修正

v256,v1024 等が入ってても正常に動作するように
ファイル名がv0_等でもエラーが出ないように

git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@2283 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
(no author) 2008-08-27 02:15:20 +00:00
parent cd443a3634
commit db25769fab

View File

@ -20,7 +20,7 @@
move_data_to_tmp() {
tmp=tmp/$1
install -d $tmp
for src in `find $1 -name v*`
for src in `find $1 -name v* -type d`
do
mv $src $tmp
done
@ -28,7 +28,7 @@ move_data_to_tmp() {
do_cls() {
tmp=tmp/$1
for target in `find $tmp -name v*`
for target in `find $tmp -name v* -type d | sort -t "v" -g -k 2`
do
cp -rp $target $1
echo "$target"
@ -43,4 +43,5 @@ do
do_cls $name
done
rm -rf tmp