mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@2342 b08762b0-b915-fc4b-9d8c-17b2551a87ff
67 lines
1.7 KiB
Bash
Executable File
67 lines
1.7 KiB
Bash
Executable File
#!/bin/sh
|
|
#! bash -f
|
|
#----------------------------------------------------------------------------
|
|
# Project: TwlSDK - tools
|
|
# File: tocsu.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$
|
|
#----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
if [ $# -lt 1 ];
|
|
then
|
|
echo "input target dir name"
|
|
exit
|
|
fi
|
|
|
|
|
|
target=`echo $1 | sed -e 's/\/$//'`
|
|
target=$target"_forcsu"
|
|
echo $target
|
|
|
|
|
|
tmp=`echo $1 | sed -e 's/\/$//'`_tmp
|
|
mkdir $target
|
|
cd $target
|
|
|
|
mkdir jp
|
|
mkdir aus
|
|
mkdir usa
|
|
mkdir euro
|
|
|
|
cp -rf ../$1/jp .
|
|
cp -rf ../$1/aus .
|
|
cp -rf ../$1/usa .
|
|
cp -rf ../$1/euro .
|
|
|
|
mkdir verup
|
|
mkdir $tmp
|
|
|
|
find ../$1 -name "*.out" -exec cp {} $tmp \;
|
|
|
|
find $tmp -regex "[^/]*/...[jaJA].*v0\.tad\.out" | gawk -F/ '{printf("cp %s jp/%s\n",$0, $2)}' | sed -e 's/\.out$//g' > jp.sh
|
|
find $tmp -regex "[^/]*/...[uaUA].*v0\.tad\.out" | gawk -F/ '{printf("cp %s aus/%s\n",$0, $2)}' | sed -e 's/\.out$//g' > aus.sh
|
|
find $tmp -regex "[^/]*/...[paPA].*v0\.tad\.out" | gawk -F/ '{printf("cp %s euro/%s\n",$0, $2)}' | sed -e 's/\.out$//g' > euro.sh
|
|
find $tmp -regex "[^/]*/...[eaEA].*v0\.tad\.out" | gawk -F/ '{printf("cp %s usa/%s\n",$0, $2)}' | sed -e 's/\.out$//g' > usa.sh
|
|
find $tmp -regex "[^/]*/.*v[^0][0-9]*\.tad\.out" | gawk -F/ '{printf("cp %s verup/%s\n",$0, $2)}' | sed -e 's/\.out$//g' > verup.sh
|
|
|
|
./jp.sh
|
|
./aus.sh
|
|
./euro.sh
|
|
./usa.sh
|
|
./verup.sh
|
|
|
|
mv $tmp ../
|
|
rm -rf *.sh
|