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
This commit is contained in:
parent
1eed41c37a
commit
0883c669a5
@ -71,7 +71,7 @@ if ARGV.size < 1
|
||||
$stdout.printf("Usage:#{__FILE__} target_clsed_dir output_dir")
|
||||
exit -1
|
||||
end
|
||||
src = ARGV[0]
|
||||
src = ARGV[0].sub(/\/\z/, "")
|
||||
out = "#{src}_foraqua"
|
||||
system("mkdir #{out}")
|
||||
system("mkdir #{out}/aus")
|
||||
|
||||
@ -24,7 +24,10 @@ then
|
||||
exit
|
||||
fi
|
||||
|
||||
target=$1_forcls
|
||||
target=`echo $1 | sed -e 's/\/$//'`
|
||||
target=$target"_forcls"
|
||||
echo $target
|
||||
|
||||
mkdir $target
|
||||
cd $target
|
||||
find ../$1 -name "*.tad" -exec ../mkcls.py {} \;
|
||||
|
||||
@ -26,8 +26,12 @@ then
|
||||
fi
|
||||
|
||||
|
||||
target=$1_forcsu
|
||||
tmp=$1_tmp
|
||||
target=`echo $1 | sed -e 's/\/$//'`
|
||||
target=$target"_forcsu"
|
||||
echo $target
|
||||
|
||||
|
||||
tmp=`echo $1 | sed -e 's/\/$//'`_tmp
|
||||
mkdir $target
|
||||
cd $target
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user