TwlIPL/build/tests/CustomSystemUpdater/work/cls.sh
(no author) 8776553814 (佐々木@PSEG1)CLS化スクリプトの修正 - すでにCLS化されている場合に再CLS化しないように変更
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@2740 b08762b0-b915-fc4b-9d8c-17b2551a87ff
2009-02-06 00:03:52 +00:00

52 lines
1.2 KiB
Bash
Executable File

#!/bin/sh
#! bash -f
#----------------------------------------------------------------------------
# Project: TwlSDK - tools
# File: conv2svnDir.sh
#
# Copyright 2007 Nintendo. All rights reserved.
#
# These coded instructions, statements, and computer programs contain
# proprietary information of Nintendo of America Inc. and/or Nintendo
# Company Ltd., and are protected by Federal copyright law. They may
# not be disclosed to third parties or copied or duplicated in any form,
# in whole or in part, without the prior written consent of Nintendo.
#
# $Date:: $
# $Rev$
# $Author$
#----------------------------------------------------------------------------
move_data_to_tmp() {
tmp=tmp/$1
install -d $tmp
for src in `find $1 -name v* -type d`
do
mv $src $tmp
done
}
do_cls() {
tmp=tmp/$1
for target in `find $tmp -name v* -type d | sort -t / -n -k 3.2`
do
cp -rp $target $1
t=`echo "$target" | cut -c 5-`
if [ -f $t/*.cls ]; then
echo "$t:Already cls processed"
else
genLic $1
fi
# genLic $1
done
}
for app in `find . -maxdepth 1 -mindepth 1 -type d`
do
name=`echo "$app" | cut -c 3-`
move_data_to_tmp $name
do_cls $name
done
rm -rf tmp